Page MenuHomePhabricator

Clicking escape after switching from wikitext to visual editor mode will hide the draft
Open, Needs TriagePublic

Description

Reproduce:

  • Draft a post in wikitext mode (either new topic, or reply to existing)
  • Click the mode-switch button. [Don't make any changes.]
  • Press [Esc] key.

Expected:

  • The "confirm discard" window should open ("Are you sure? Are you sure you want to cancel without saving first?")

Current:

  • The draft vanishes from view, making me think I've lost everything.
    • (If I click the text-field ("Start new topic" or "Reply to foo"), the draft reappears. But a frustrated user might not realize this.)

Confirmed in Firefox 47. Bug pointed out in https://www.mediawiki.org/w/index.php?title=Topic:T8r9s0quuoh5px0h&topic_showPostId=t8xyarrh02p072cg#flow-post-t8xyarrh02p072cg

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

(If I click the text-field ("Start new topic" or "Reply to foo"), the draft reappears. But a frustrated user might not realize this.)

That's surprising. I might not have filed T185891 in case that was true. For me tapping on the text-field shows the draft momentarily and it then disappears so I do lose what I type when I hit the 'Esc' key.