Focus trap on Modal issues #635
Unanswered
cubecleveland
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
Using headless ui for implementing modal in react.
We noticed the following edge cases
If a navigation occures in the application that does not involve closing the modal ( either via a mouse click or close button)
The app cashes with exception.
Our app allows navigation via keboard shortcuts but also some api calls going in the background that reroute the page....
So basically if the modal is open but someone presses a hot key to navigate the app crashes with the focus exception...
Any know method to oversome this behaviour....
I assume it will require always closing the modal on any navigation but any help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions