Open ajanickiv opened 2 years ago
Hey there @ajanickiv, this is related to #3527. In the PR.
Checking the address bar might make things more difficult to inspect elements in the page. For example, with menu when checking for focusOut on the navigation, it would close when inspecting the markup in devtools.
Just something to keep in mind when we look into this issue.
We don't want to close the modal when going to the address bar, but we want to tabbing from the address bar to a modal-active page to tab only into the modal
Describe the bug
User can tab to content behind a displayed modal
Steps to reproduce the bug
Open default modal
Expected behavior
When the user tabs back into the viewport, the focus is restricted to the modal's content.
Screenshots
System setup
Additional context
Checked with some other component libraries, namely PrimeNG and Bootstrap, and they handle this case - keeping the user restricted to the modal's content when in the viewport.