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

md-dialog allows tabbing / keypresses escaping. #2328

Open
ryantheleach opened this issue May 20, 2021 · 0 comments
Open

md-dialog allows tabbing / keypresses escaping. #2328

ryantheleach opened this issue May 20, 2021 · 0 comments

Comments

@ryantheleach
Copy link

ryantheleach commented May 20, 2021

Using the demo on https://vuematerial.io/components/dialog, despite appearing as a modal, md-dialog has no method of trapping focus, or preventing key events escaping.

Steps to reproduce

open a demo dialog on https://vuematerial.io/components/dialog

press tab, when focus is inside the dialog, note that you can tab through the navigation behind it.

Which browser?

Google Chrome Version 90.0.4430.212 (Official Build) (64-bit)

What is expected?

It is expected that a modal dialog prevents focus leaving the dialog until closed.
It is expected that shortcut keys pressed relevent to the dialog, do not affect the rest of the application / site.

What is actually happening?

Focus is allowed to escape, despite a <md-focus-trap> being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant