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
F18542807: D21219.diff
Sun, Sep 7, 11:07 PM
F18542758: D21219.diff
Sun, Sep 7, 10:55 PM
F18497770: D21219.diff
Thu, Sep 4, 6:13 PM
F18495673: D21219.diff
Thu, Sep 4, 4:36 PM
F18423886: D21219.id50532.diff
Sat, Aug 30, 8:18 PM
F18190722: D21219.id50535.diff
Aug 17 2025, 1:30 AM
F18161907: D21219.id50532.diff
Aug 15 2025, 3:50 AM
F18112316: D21219.diff
Aug 12 2025, 4:22 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.