-
Notifications
You must be signed in to change notification settings - Fork 810
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
Replace shouldReturnFocusAfterClose={boolean} with returnFocusTo={Element} #991
Comments
@diasbruno any pr's for this ? or you currently working on this ? |
@gautamz07 Take a look at this branch https://github.com/reactjs/react-modal/tree/v4 I think I've deprecated |
If you want, just go ahead and take over... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This must be an element that will gain focus after the modal
is closed.
The default behavior should be to return the focus to the element
on
document.activeElement
before open the modal, but...in some browsers, this behavior is broken so we can't always
trust it.
So, the user must pass to this attribute an element
that must receive the focus later.
The text was updated successfully, but these errors were encountered: