Files
paseo/packages
LiebeLee fb7879bb26 Report a guarded sheet's close when Gorhom's onChange drops it
A close that ends at the index Gorhom's bookkeeping already holds is not reported through
`onChange(-1)`, and dismissing a sheet during its mount animation leaves that index at -1.
The workspace sheet then never closed its tab: the modal parked at -1 with its web backdrop
still covering the app, so every tap in the header was lost, including the tab counter and
the workspace menu.

`IsolatedBottomSheetModal` now reports a close animation that settles at the closed detent,
and workspace sheets feed both signals into one idempotent guarded close, so the
unsaved-changes prompt still runs at most once.

Covered by an e2e that dismisses a file sheet inside its mount animation: it failed 3/3
before the change and passes now.
2026-11-29 11:49:35 +00:00
..