diff --git a/frontend/src/component/commandBar/CommandBar.tsx b/frontend/src/component/commandBar/CommandBar.tsx index 53e824430d..6e40dbbbf4 100644 --- a/frontend/src/component/commandBar/CommandBar.tsx +++ b/frontend/src/component/commandBar/CommandBar.tsx @@ -195,6 +195,9 @@ export const CommandBar = () => { ); useKeyboardShortcut({ key: 'Escape' }, () => { setShowSuggestions(false); + if (searchContainerRef.current?.contains(document.activeElement)) { + searchInputRef.current?.blur(); + } }); const placeholder = `Command bar (${hotkey})`;