Page MenuHomePhabricator

When cancelling an unsaved editing inline after a reload, don't cancel into an empty state
ClosedPublic

Authored by epriestley on May 4 2020, 9:01 PM.
Tags
None
Referenced Files
F19600110: D21219.id50535.diff
Feb 3 2026, 3:07 AM
F19516301: D21219.diff
Jan 14 2026, 10:29 PM
F19092906: D21219.diff
Dec 3 2025, 7:02 PM
F18952779: D21219.diff
Nov 12 2025, 6:30 AM
F18863371: D21219.diff
Nov 2 2025, 11:00 PM
F18830927: D21219.diff
Oct 25 2025, 9:41 AM
F18816852: D21219.diff
Oct 21 2025, 9:54 AM
F18749623: D21219.id50532.diff
Oct 4 2025, 4:31 AM
Subscribers
None

Details

Summary

Ref T13513. Overloading "original text" to get "edit-on-load" comments into the right state has some undesirable side effects.

Instead, provide the text when the editor opens. This fixes a cancel interaction.

Test Plan
  • Create an inline, type text, don't save.
  • Reload page.
  • Cancel.
  • Before: cancelled into empty state.
  • After: cancelled into deleted+undo state.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 4 2020, 10:20 PM
This revision was automatically updated to reflect the committed changes.