-
Notifications
You must be signed in to change notification settings - Fork 18
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
How to contain the focus lock fighting to a special div? #77
Comments
This is the code I'm using to do what I was describing:
|
You want to contain focus inside for keyboard operations, but auto-disable it when you operate with any content outside the lock using mouse? The code you've provided is the correct solution for this task and is almost exactly what focus-on does |
Hey @theKashey ! I didn't know this package. I've checked the code. With FocusOn, how do I delimit until where the focus should be kept? For example, I want my input to be focused while the focus is kept in a specific zone. |
Let's say I have the following code:
If
#input2
is focused, I don't want react-focus-lock to fight for focus as#input2
is outside of#frontier
.How to do something like this with react-focus-lock?
The text was updated successfully, but these errors were encountered: