Skip to content

Fix false "unsaved changes" prompt when leaving unmodified draft #2985

Description

@jbair06

Description:
Navigating away from a draft that was opened but never modified incorrectly triggers a "save your changes" prompt. No edits were made.

Current/Expected Behavior:
Current: Opening a saved draft and immediately navigating away prompts to save changes.
Expected: No prompt appears if the draft was not modified.

Acceptance Tests:

  • Create a draft, save it, reopen it, and navigate away without editing — no unsaved changes prompt appears
  • Editing a reopened draft and navigating away still triggers the prompt

Notes:
The dirty state check may be comparing a stale saved-at timestamp against the draft's auto-updated timestamp, producing a false positive diff on open.

Metadata

Metadata

Assignees

Labels

BugA error that causes the feature to behave differently than what was expected based on design docsFrontendFrontend development work

Type

Fields

No fields configured for Bug.

Projects

Status
👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions