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
F18190722: D21219.id50535.diff
Sun, Aug 17, 1:30 AM
F18161907: D21219.id50532.diff
Fri, Aug 15, 3:50 AM
F18112316: D21219.diff
Tue, Aug 12, 4:22 PM
F18101085: D21219.id.diff
Sat, Aug 9, 12:19 PM
F18086406: D21219.id.diff
Tue, Aug 5, 9:42 PM
F18077952: D21219.diff
Mon, Aug 4, 7:38 PM
F17867054: D21219.diff
Jul 28 2025, 5:18 AM
Unknown Object (File)
Jun 5 2025, 4:53 PM
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.