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
F14895516: D21219.id50535.diff
Sun, Feb 9, 9:13 AM
F14895515: D21219.id50532.diff
Sun, Feb 9, 9:13 AM
F14895514: D21219.id.diff
Sun, Feb 9, 9:13 AM
Unknown Object (File)
Sat, Jan 25, 7:39 AM
Unknown Object (File)
Sat, Jan 25, 7:32 AM
Unknown Object (File)
Sat, Jan 25, 7:32 AM
Unknown Object (File)
Sat, Jan 25, 7:32 AM
Unknown Object (File)
Tue, Jan 21, 11:04 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
Branch
focus3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24349
Build 33544: Run Core Tests
Build 33543: arc lint + arc unit

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.