Clicking on the 'Esc' button when editing a discussion asks the user whether to discard the edit or not through the "Are you sure?" modal. The same doesn't happen when creating a new flow topic especially when the topic has been given a title!
Steps to reproduce
- Open 2017 wikitext editor/Feedback
- Click on "Start a new topic"
- Enter "Test title" in the title space
- Enter "Lorem ipsom ..." in the topic description space
- Tap on the 'Esc' key
Expected results
The "Are you sure?" modal is shown to ask for user consent whether to discard the change or not.
Actual results
The "Are you sure?" modal is not shown to ask for user consent.
Note
The "Are you sure?" modal is shown to ask for user consent when the title is not entered (Step 3).
Environment details
Browser | Firefox Nightly 60.0a1 |
OS | Debian GNU/Linux 9 (stretch) |
Skin | Vector (default) |
See T142011: Clicking escape after switching from wikitext to visual editor mode will hide the draft and T96531: Flow not warning me when I leave an edit page with unsaved changes.