-
Unmount Dialog children when closed
released this
2026-06-19 16:52:17 +02:00 The native
wrapper rendered its children unconditionally
and only called dialog.close() on the underlying element when
open went false. The React subtree stayed mounted, so component
state (e.g. a ConfirmButton mid-confirm with a red checkmark
showing) survived a close/reopen cycle and reappeared the next
time the user opened the same dialog.Gate children on open so the subtree unmounts on close. Next open
gets a fresh tree with default state.Downloads