Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MDCDialog] Focus is set to an element outside the dialog when the dialog is open #7924

Open
mdooley opened this issue Dec 15, 2022 · 0 comments
Labels

Comments

@mdooley
Copy link

mdooley commented Dec 15, 2022

Bug report

When scrimClickAction is set to '', clicking on the scrim then pressing tab sets focus to an element outside the dialog.

Steps to reproduce

  1. Set the scrimClickAction of a MDCDialog to ''
  2. Open the dialog
  3. Click the scrim
  4. Press tab

https://codepen.io/mdooley1/pen/RwJXqqL

Actual behavior

Focus is set to a focusable element outside the dialog.

Expected behavior

Focus remains on elements within the dialog.

Your Environment:

Software Version(s)
MDC Web v14
Browser Version 108.0.5359.9
Operating System macOS 12.6.1
@mdooley mdooley added the bug label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant