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

Opt-in auto fucus #27

Open
klimashkin opened this issue Aug 23, 2017 · 0 comments
Open

Opt-in auto fucus #27

klimashkin opened this issue Aug 23, 2017 · 0 comments

Comments

@klimashkin
Copy link

Current solution when modal automatically searches for tabbable element on open sometimes leads to not desired behavior.

For instance there is a bunch of links inside modal and action button in the end. I don't want to first link be highlighted when user opens a modal.

I think any tabbable element should not be focused by default, default should be focusing on modal div itself with tabIndex='-1' (a11y-focus-scope does it now only if tabbable element can't be found).

And if you want to focus some element, then set option on react-modal2 to enable current mechanic of searching first tabbable element.

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