fix: 🐛
This commit is contained in:
parent
1a58e54ed0
commit
8655fd1840
2 changed files with 12 additions and 6 deletions
|
|
@ -168,18 +168,18 @@ const SearchBar = forwardRef<
|
|||
}, [input, debouncedInput, profiles])
|
||||
|
||||
useEffect(() => {
|
||||
if (list) {
|
||||
setDisplayList(searching && !!input)
|
||||
}, [searching, input])
|
||||
|
||||
useEffect(() => {
|
||||
if (displayList && list) {
|
||||
modalManager.register(id, () => {
|
||||
setDisplayList(false)
|
||||
})
|
||||
} else {
|
||||
modalManager.unregister(id)
|
||||
}
|
||||
}, [list])
|
||||
|
||||
useEffect(() => {
|
||||
setDisplayList(searching && !!input)
|
||||
}, [searching, input])
|
||||
}, [displayList, list])
|
||||
|
||||
const handleKeyDown = useCallback(
|
||||
(e: React.KeyboardEvent) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue