-
Notifications
You must be signed in to change notification settings - Fork 67
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
react-focus-lock with material UI drop-downs #27
Comments
Could you access them without focus lock active? |
So, the problem is simple - Focus Lock is locking everything inside. There is only 2 ways to escape it
So the problem - material UI triggering focus my calling low-level DOM API, thus I receive event from document, not React and not thought the portal. Technology is limited, I could not handle it :( |
whiteLists, introduced in v1.13.0 could solve this. |
for anyone at 2021 here, you can refer here https://mui.com/components/trap-focus/ ! MUI now gives you out of the box focus lock and yes it is working with their keyboard events :) |
If drop-down elements are warped with the FocusLock, items in the drop-down are cannot access and select from the keyboard. (using arrow keys and enter key press ).
Note: It works with mouse click events.
The text was updated successfully, but these errors were encountered: