fix: search input bug clearing query
This commit is contained in:
parent
2b7e6db146
commit
3875465041
|
@ -122,7 +122,6 @@ const SearchBox = (props: SearchBoxProps) => {
|
|||
setTimeout(() => {
|
||||
setPlaceholder(copyConfigs.search.searchbarPlaceholders.global())
|
||||
}, 200)
|
||||
setQuery('')
|
||||
}
|
||||
}, [focused, queryInput])
|
||||
|
||||
|
@ -181,6 +180,11 @@ const SearchBox = (props: SearchBoxProps) => {
|
|||
)
|
||||
}, [query, filterTags, filterContentTypes])
|
||||
|
||||
// useEffect(() => {
|
||||
// if (focused) return
|
||||
// if (query !== queryInput) setQuery(queryInput)
|
||||
// }, [focused, query, queryInput])
|
||||
|
||||
const hydrated = useHydrated()
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue