Skip to content

Commit

Permalink
fix(a11y): move focus algolia-search focus back to search input on Es…
Browse files Browse the repository at this point in the history
…cape
  • Loading branch information
mxschmitt committed Mar 12, 2024
1 parent 319d73d commit 597ac72
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ function DocSearch({
const onClose = useCallback(() => {
setIsOpen(false);
searchContainer.current?.remove();
searchButtonRef.current?.focus();
}, [setIsOpen]);

const onInput = useCallback(
Expand Down

0 comments on commit 597ac72

Please sign in to comment.