Have you read the Contributing Guidelines on issues?
Prerequisites
Description
When entering the Search dialog of docusaurus and leaving it afterwards via ESC, the page looses focus and does not re-focus the search input box from before.
Relates microsoft/playwright.dev#1269.
Reproducible demo
No response
Steps to reproduce
- Navigate to https://docusaurus.io/
- Press Tab around 14 times, until the focus reaches the Search input box
- Press Enter
- Press ESC key
Expected behavior
Focus stays at the search input box.
Actual behavior
Focus gets lost.
Your environment
- Public source code: N/A
- Public site URL: N/A
- Docusaurus version used: main
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 122
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS 14.3
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
When entering the Search dialog of docusaurus and leaving it afterwards via ESC, the page looses focus and does not re-focus the search input box from before.
Relates microsoft/playwright.dev#1269.
Reproducible demo
No response
Steps to reproduce
Expected behavior
Focus stays at the search input box.
Actual behavior
Focus gets lost.
Your environment
Self-service