Open
Description
Description
when in detached mode (fullscreen or modal), focus should be trapped.
Reproduction
Steps
- Go to https://www.algolia.com/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete/
- Reduce viewport width to 500px to switch to detached mode.
- Click on the first autocomplete.
- Press Tab a couple of times (or Shift+Tab)
- Some hidden element is focused, and modal can't be closed with Esc anymore
Expected behavior
focus should be trapped.
Environment
- OS: [e.g. Windows / Linux / macOS / iOS / Android]
- Browser: [e.g. Chrome, Safari] Firefox 88
- Autocomplete version: [e.g. 1.0.0] 1.0.1