From 6b342f61b433e20201799cf680b9f771f1c2d78b Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Thu, 25 Jun 2026 14:59:50 -0700 Subject: [PATCH] Hide autocomplete suggestions when input loses focus (#10989) --- src/view/shell/desktop/Search.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/view/shell/desktop/Search.tsx b/src/view/shell/desktop/Search.tsx index 189a9fafcf..b36ba52ce1 100644 --- a/src/view/shell/desktop/Search.tsx +++ b/src/view/shell/desktop/Search.tsx @@ -27,6 +27,10 @@ export function DesktopSearch() { if (query.length) setActive(true) } + const onBlur = () => { + setActive(false) + } + const onChangeText = (text: string) => { setQuery(text) if (!active) { @@ -64,6 +68,7 @@ export function DesktopSearch() { hotkey value={query} onFocus={onFocus} + onBlur={onBlur} onChangeText={onChangeText} onClearText={onClearText} onSubmitEditing={onSubmit}