You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace shouldReturnFocusAfterClose={boolean} with returnFocusTo={Element} #991
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.
Activity
gautamz07 commentedon Jul 20, 2023
@diasbruno any pr's for this ? or you currently working on this ?
diasbruno commentedon Jul 20, 2023
@gautamz07 Take a look at this branch https://github.com/reactjs/react-modal/tree/v4 I think I've deprecated
shouldReturnFocusAfterCloseand need to addreturnFocusTo.diasbruno commentedon Jul 20, 2023
If you want, just go ahead and take over...