Skip to content

Commit

Permalink
fix(header-search): blur input when deactivating (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Nov 21, 2023
1 parent d4e590f commit 192f6a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UIShell/HeaderSearch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@
break;
case 'Escape':
if (value === '') {
// If the search bar is empty, close it.
// If the search bar is empty, deactivate and blur the input.
active = false;
ref?.blur();
}

// Reset the search query but keep the search bar active.
Expand Down

0 comments on commit 192f6a7

Please sign in to comment.