Skip to content

[modal] tab key is not trapped on modal open #2490

@mvorisek

Description

@mvorisek

Bug Report

Steps to reproduce

  1. 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
  2. click the button to open the modal
  3. press tab key on keyboard and notice the links can/are focused (browser usually shows the focused link URL in the bottom left browser window corner)
  4. 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

Metadata

Metadata

Assignees

Labels

type/bugAny issue which is a bug or PR which fixes a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions