If I am working on a post, and try to close the browser window, then a prompt is displayed asking if I want to leave the page.

However, the same thing does not happen if I am working on a comment.

I am proposing extending the "navigate away" prompt to include the situation where there is a comment on the page that has not yet been saved (either a new comment, or one that is being edited, which has a non-zero length).

  • If the comment is so important, perhaps it shouldn't be a comment... – Catija Nov 3 '16 at 15:05
  • 1
    @Catija sometimes even losing 20 characters cause frustration. – Shadow The Princess Wizard Nov 3 '16 at 15:06
  • 1
    @Catija Except perhaps in cases like when you have spent some time to find relevant resources to help a newcomer improve their question, and manage to close the wrong browser tab. See for example the reasoning in meta.stackexchange.com/a/234335/157730. – a CVn Nov 3 '16 at 15:06
  • @ShadowWizard 20 characters should be easily replicable... – Catija Nov 3 '16 at 15:07
  • If you're improving an answer, it should be an edit, not a comment. – Catija Nov 3 '16 at 15:07
  • 1
    @Catija I shouldn't be editing someone else's post if I don't know what the intent of the original poster is. – a CVn Nov 3 '16 at 15:08
  • 1
    @Catija it is about user experience. Even if something isn't that important, having to repeat it is not pleasant. If the change would have required lots of development and efforts, I'd also be against it due to the nature of comments, being "third class citizens". However, being a simple thing to implement, I think it would be nice to have. – Shadow The Princess Wizard Nov 3 '16 at 15:11
  • @ShadowWizard Considering I'm more likely to intentionally close a window/navigate away without submitting a comment... this would make my UE worse. – Catija Nov 3 '16 at 15:11
  • 1
    @Catija Please read my question (proposal) again. This is for situations where you are actively doing something with the new/edit comment field. If I click "add a comment" below a post and type something, then I probably intend to submit that comment. – a CVn Nov 3 '16 at 15:13
  • 2
    @Catija in that case, adding a "cancel" link when adding a comment might be a required change as well. (There is already one when editing) – Shadow The Princess Wizard Nov 3 '16 at 15:13
  • I'm fully capable of reading... I mean that I often enter text into the comment field and then decide not to submit it because I find it to be a poor choice to add to the conversation... Sometimes it's cathartic to write something out but never hit send. – Catija Nov 3 '16 at 15:14
  • @Catija I also do that sometimes, but even more with answers. So it shouldn't be what's stopping such a feature from being done. – Shadow The Princess Wizard Nov 3 '16 at 15:51
  • 1
    This is a Stack Overflow Extras (SOX) feature BTW ;) But I do agree that SE should add the alert themselves! – ᔕᖺᘎᕊ Nov 3 '16 at 18:53

Browse other questions tagged .