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
Modal should trap focus #310
Comments
Safari on mac OS Sierra shows the problem. |
Chrome (65 on Linux, at least) does allow you to focus on elements behind the modal, but you have to tab through the URL bar first. On the reactstrap demo page linked above, clicking "launch modal" and then pressing tab-tab-tab-tab-tab-esc-tab will put the focus onto the first clickable element on the page, the "Reactstrap" link behind the modal. (The "esc" dismisses the URL bar autocomplete). Subsequent tabs will navigate through the component menu on the right-hand-side of the page. |
* Handle IE's inconsistent activeElement * Filter out input[type=hidden] * Add a few more elements to focus
v4.0.1
Modal
Steps to reproduce issue
Open modal and hit tab. Focus should stay in the modal. You should not be able to focus on the element behind the modal/backdrop.
https://reactstrap.github.io/components/modals/
http://v4-alpha.getbootstrap.com/components/modal/
The text was updated successfully, but these errors were encountered: