Skip to content

Commit

Permalink
Merge pull request #1824 from michaltarasiuk/bug/escape-key-blur-sear…
Browse files Browse the repository at this point in the history
…ch-input

Unable to exit the search bar using the ESC key
  • Loading branch information
steven-tey authored Dec 22, 2024
2 parents eff02dd + 4906743 commit f87b322
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/ui/shared/search-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export const SearchBox = forwardRef(
) {
e.preventDefault();
inputRef.current?.focus();
} else if (e.key === "Escape") {
inputRef.current?.blur();
}
}, []);

Expand Down

0 comments on commit f87b322

Please sign in to comment.