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
F13236440: D21219.diff
Tue, May 21, 9:43 AM
F13185848: D21219.diff
Sat, May 11, 3:15 AM
Unknown Object (File)
Tue, May 7, 5:48 AM
Unknown Object (File)
Sun, May 5, 7:17 PM
Unknown Object (File)
Fri, May 3, 3:31 AM
Unknown Object (File)
Mon, Apr 29, 3:20 PM
Unknown Object (File)
Sat, Apr 27, 11:03 PM
Unknown Object (File)
Thu, Apr 25, 5:15 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.