-
Notifications
You must be signed in to change notification settings - Fork 70
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
Initially disabled element breaks focus wrap #50
Comments
The problem is not with |
Anyway - that's my mistake. I'll fix it a but later, but removing tabIndex will fix everything right now. |
theKashey
added a commit
that referenced
this issue
Nov 12, 2018
Fixed in 1.17.5 |
Thanks! |
nickspaargaren
pushed a commit
to nickspaargaren/react-focus-lock
that referenced
this issue
Dec 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off: this is an awesome library that's saved me a big headache in implementation. Thanks for your work on this!
I've found an issue with having an initially disabled button in the mix. In my case, I disable the save button on a modal form if no changes have been made. However, I've found that having that element initially disabled breaks the focus wrap so that it stops on the button. Perhaps something to do with how the lock is initialized?
Here's a minimal example:
What I may do in the meantime is change how I disable buttons, although it would be ideal to stick with the browser implementation. Thanks for taking a look at this - let me know if there's any other info I can gather.
The text was updated successfully, but these errors were encountered: