Skip to content

Fix: allow Enter to trigger search with autocomplete menu open#782

Open
ThomasHenryBBC wants to merge 15 commits intoalphagov:mainfrom
nicholasgriffintn:fix-autocomplete-enter-search
Open

Fix: allow Enter to trigger search with autocomplete menu open#782
ThomasHenryBBC wants to merge 15 commits intoalphagov:mainfrom
nicholasgriffintn:fix-autocomplete-enter-search

Conversation

@ThomasHenryBBC
Copy link
Copy Markdown

Previously pressing Enter when the search input box was focused, with the autocomplete menu, would prevent a search from triggering. Moved preventDefault() within the handleEnter component to allow search to trigger when autocomplete menu is open, but not focused

@netlify
Copy link
Copy Markdown

netlify bot commented Nov 24, 2025

Deploy Preview for accessible-autocomplete ready!

Name Link
🔨 Latest commit 709e816
🔍 Latest deploy log https://app.netlify.com/projects/accessible-autocomplete/deploys/6924af380e894a0008bf2550
😎 Deploy Preview https://deploy-preview-782--accessible-autocomplete.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nicholasgriffintn nicholasgriffintn requested a review from a team as a code owner November 24, 2025 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants