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 providing a transition in the Modal component, the exit stages of the transition don't seem to run when show is set to false after being true.
Modal
show
false
true
Here is a full reproduction: https://codesandbox.io/s/react-modal-transition-issue-5j4sz
You can inspect element on the modal to see that it never gets the ...-exit-active classes from CSSTransition.
...-exit-active
CSSTransition
I would expect the exit classes to be applied, but the modal seems to unmount from the DOM instantly, not giving them a chance to run.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When providing a transition in the
Modal
component, the exit stages of the transition don't seem to run whenshow
is set tofalse
after beingtrue
.Reproducible Example
Here is a full reproduction: https://codesandbox.io/s/react-modal-transition-issue-5j4sz
You can inspect element on the modal to see that it never gets the
...-exit-active
classes fromCSSTransition
.Expected behavior
I would expect the exit classes to be applied, but the modal seems to unmount from the DOM instantly, not giving them a chance to run.
The text was updated successfully, but these errors were encountered: