Confusing dialogue when editing issue comments, "cancel" means "do not cancel"
GitLab version 14.7.1
See also #287808 which reports the same problem for merge requests.
To reproduce
- Edit a comment in a GitLab issue.
- Make at least one small change.
- Press the cancel button.
- The following dialogue is displayed
What's wrong?
If you do not want to cancel, then be sure to press "Cancel"!
This is particularly problematic for those who use the vim editor, and often accidentally hit the escape key, which also causes the confusing dialogue to be displayed.
Possible solution
Change the text and/or button labels in the dialogue box.
For example
Are you sure you want to discard your changes?
-------------- --------------
| Yes, discard | | no, continue |
-------------- --------------
Edited by 🤖 GitLab Bot 🤖
