Description
The IonToast in Menu.tsx is currently shared between two different flows:
- Validation errors during Save As
- Save failures caused by missing file data
However, the onDidDismiss handler always triggers setShowAlert3(true), which reopens the Save As dialog even when the toast originated from a save failure.
This creates incorrect UX behavior and unintentionally reopens the Save As modal in unrelated flows.
Steps to Reproduce
- Open a saved file (non-default)
- Trigger a save failure (e.g. remove file data from storage)
- Press Save
- Dismiss the error toast
Expected Behavior
The toast should dismiss cleanly.
The Save As dialog should only reopen when the toast originated from the Save As validation flow.
Actual Behavior
Dismissing the toast always reopens the Save As dialog regardless of the originating flow.
Possible Fix
Track which flow triggered the toast and conditionally reopen Save As only when appropriate.
Description
The
IonToastinMenu.tsxis currently shared between two different flows:However, the
onDidDismisshandler always triggerssetShowAlert3(true), which reopens the Save As dialog even when the toast originated from a save failure.This creates incorrect UX behavior and unintentionally reopens the Save As modal in unrelated flows.
Steps to Reproduce
Expected Behavior
The toast should dismiss cleanly.
The Save As dialog should only reopen when the toast originated from the Save As validation flow.
Actual Behavior
Dismissing the toast always reopens the Save As dialog regardless of the originating flow.
Possible Fix
Track which flow triggered the toast and conditionally reopen Save As only when appropriate.