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
Closing a dialog that has open, onClose and unmountOnHide props (see example below) doesn't wait for the closing animation before unmounting. When using store and unmountOnHide props, everything works as expected.
At the moment, if a store isn't provided (either through the store prop or by wrapping the dialog with DialogProvider), the Dialog's open prop is the sole data available for unmountOnHide to determine whether it should unmount the underlying component.
This ensures we run as little code as possible when the dialog is unmounted. But we can potentially support this in the future.
Current behavior
Closing a dialog that has
open
,onClose
andunmountOnHide
props (see example below) doesn't wait for the closing animation before unmounting. When usingstore
andunmountOnHide
props, everything works as expected.Steps to reproduce the bug
Expected behavior
Dialogs should finish animation regardless of whether store is passed as a prop or is created internally.
Workaround
Construct
useStore
manually.#3403 (comment)
Possible solutions
No response
The text was updated successfully, but these errors were encountered: