## Current behavior When the filtered list is empty (e.g. typing "asdf") and the popup is showing `Autocomplete.Empty` content ("No tags found."): 1. Press Escape — the input **blurs** (loses focus), but the popup remains visible. 2. Press Escape again — the popup closes. ## Expected behavior 1. Press Escape — the popup **closes**, the input retains focus. Per [WAI-ARIA APG combobox pattern](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/): > Escape: Dismisses the popup if it is visible. The popup should close first. Focus should remain on the input. ## Reproducible example https://github.com/user-attachments/assets/e2542f60-a176-4864-911a-fac24dafec71 Reproducible on the docs site: https://base-ui.com/react/components/autocomplete Steps: 1. Click the "Search tags" input in the hero example 2. Type "asdf" (no matches — "No tags found." is shown) 3. Press Escape — observe that the input loses focus instead of the popup closing ## Base UI version v1.2.0 ## Which browser are you using? Chrome ## Which OS are you using? macOS
Current behavior
When the filtered list is empty (e.g. typing "asdf") and the popup is showing
Autocomplete.Emptycontent ("No tags found."):Expected behavior
Per WAI-ARIA APG combobox pattern:
The popup should close first. Focus should remain on the input.
Reproducible example
CleanShot.2026-03-03.at.06-12-20.mp4
Reproducible on the docs site: https://base-ui.com/react/components/autocomplete
Steps:
Base UI version
v1.2.0
Which browser are you using?
Chrome
Which OS are you using?
macOS