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 (#9945)
  • Loading branch information
mxschmitt authored Mar 14, 2024
1 parent 14bec09 commit 7938803
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 7938803

Please sign in to comment.