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 }}
This repository was archived by the owner on Feb 16, 2026. It is now read-only.
Describe the bug
When providing a transition in the
Modalcomponent, the exit stages of the transition don't seem to run whenshowis set tofalseafter 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-activeclasses 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.