-
-
Notifications
You must be signed in to change notification settings - Fork 335
[modal] tab key is not trapped on modal open #2490
Copy link
Copy link
Closed
Labels
type/bugAny issue which is a bug or PR which fixes a bugAny issue which is a bug or PR which fixes a bug
Milestone
Description
Bug Report
Steps to reproduce
- have a page with several links (
<a...tags) and a button which can open a modal (with blured background) on click with 2 input fields - click the button to open the modal
- press
tabkey on keyboard and notice the links can/are focused (browser usually shows the focused link URL in the bottom left browser window corner) - notice, once you cycle thru all the links and move the tab/focus into the modal input, the tab is then trapped correctly (cycles in modal input fields only), given this fact/functionality, I belive the tab key must be trapped immediatelly on open
env: FIrefox, modal observeChanges enabled
Expected result
tab key is trapped immediatelly once the modal is open
Actual result
tab key is NOT trapped until it hit some focusable element in the modal for the first time
Version
2.9.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/bugAny issue which is a bug or PR which fixes a bugAny issue which is a bug or PR which fixes a bug