mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove Comment
This commit is contained in:
parent
9be74570b6
commit
f4c9724a99
1 changed files with 0 additions and 3 deletions
|
|
@ -230,7 +230,6 @@ export function SearchBox(props: SearchBoxProps): JSX.Element {
|
|||
const [isAddAction, setIsAddAction] = useState(false);
|
||||
const IS_URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/;
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
setSearchTerm(props.searchTerm ?? '')
|
||||
}, [props.searchTerm])
|
||||
|
|
@ -311,8 +310,6 @@ export function SearchBox(props: SearchBoxProps): JSX.Element {
|
|||
} else {
|
||||
await props.handleLinkSubmission(searchTerm, timeZone, locale)
|
||||
setSearchTerm(props.searchTerm ?? "")
|
||||
// This will technically (albeit kinda hackily) refresh and add the link
|
||||
// I would prefer, though, for this to actually be handled better.
|
||||
props.applySearchQuery(props.searchTerm ?? "")
|
||||
}
|
||||
inputRef.current?.blur()
|
||||
|
|
|
|||
Loading…
Reference in a new issue