Files
BFlat ed57c6de47 Fix page freeze after fast-closing the lightbox modal (#1938)
Opening a generated image/video and quickly clicking the backdrop to
close left the whole page unclickable, with no visible overlay to
explain why.

**Cause:** `Dialog.Overlay`/`Dialog.Content` are `forceMount`ed so
react-spring owns the leave animation. On close `Dialog.Root`'s `open`
flips false while the layer is still mounted, and Radix derives
`disableOutsidePointerEvents` from that flag, so its cleanup never
restores the `pointer-events: none` it set on `<body>`. Closing slowly
masked it; closing fast interrupts the leave spring so the clearing
render never comes.

**Fix:** `unregisterModal` now schedules `releaseStrandedBodyLock`,
clearing a lock nothing still owns. Bails if a modal is still registered
or a real open Radix dialog exists.
2026-09-10 22:44:10 +07:00
..
2025-04-22 01:00:58 +07:00
2025-04-22 01:00:58 +07:00
2025-04-22 01:00:58 +07:00
2025-04-22 01:00:58 +07:00

@storyteller/ui-modal

This library was generated with Nx.

Running unit tests

Run nx test @storyteller/ui-modal to execute the unit tests via Vitest.