Skip to content
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

Disable focusTrap on AriaModal #101

Open
nijynot opened this issue Nov 11, 2019 · 1 comment
Open

Disable focusTrap on AriaModal #101

nijynot opened this issue Nov 11, 2019 · 1 comment

Comments

@nijynot
Copy link

nijynot commented Nov 11, 2019

There's to no option to disable the focus-trap on the modal.
There's the focusTrapPaused, but that only pauses it, doesn't deactivate.

@chaddjohnson
Copy link

chaddjohnson commented Jan 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants