We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When conditional render is used - react modal restores focus on unmount without triggering onFocus event handler on target input.
onFocus
<Modal />
Input's onFocus event handler is triggered on focus restore.
React16 and v3: https://codesandbox.io/s/6y6nx2np4k
isOpen
closeTimeoutMS
In case of using for example draft-js as an input, this bug becomes a cause of the really strange behavior after focus restore.
draft-js
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary:
When conditional render is used - react modal restores focus on unmount without triggering
onFocus
event handler on target input.Steps to reproduce:
<Modal />
onFocus
event handler on the inputExpected behavior:
Input's
onFocus
event handler is triggered on focus restore.Link to example of issue:
React16 and v3: https://codesandbox.io/s/6y6nx2np4k
Additional notes:
isOpen
attribute instead of conditional renderingcloseTimeoutMS
is set (I think v3 don't respectcloseTimeoutMS
on unmount anymore #530 issue prevents using this workaround)In case of using for example
draft-js
as an input, this bug becomes a cause of the really strange behavior after focus restore.The text was updated successfully, but these errors were encountered: