diff --git a/packages/app/src/components/quick-search/input.tsx b/packages/app/src/components/quick-search/input.tsx index fe608295da..32dbe7f27b 100644 --- a/packages/app/src/components/quick-search/input.tsx +++ b/packages/app/src/components/quick-search/input.tsx @@ -17,13 +17,19 @@ export const Input = (props: { const [inputValue, setInputValue] = useState(''); const inputRef = useRef(null); useEffect(() => { + inputRef.current?.addEventListener( + 'blur', + () => { + inputRef.current?.focus(); + }, + true + ); return inputRef.current?.focus(); }, [inputRef]); useEffect(() => { return setInputValue(props.query); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - return (