mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 04:36:26 +00:00
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.