Open nijynot opened 4 years ago
It definitely would be useful to have a way to disable the focus trap. Maybe something simple like this:
focusTrapOptions={{
active: false
}}
or
focusTrapActive={false}
One use case is a designer mode where a preview of a modal, using react-aria-modal, is displayed on page. In this case, a focus trap would be undesirable.
UPDATE: Added a pull request.
There's to no option to disable the
focus-trap
on the modal. There's thefocusTrapPaused
, but that only pauses it, doesn't deactivate.