Prevent losing draft comments on navigation or if a window is closed #68448
Unanswered
breilly2
asked this question in
Pull Requests
Replies: 3 comments
-
I think this problem happens when I type in the comment box too. Sometimes to write pseudocode, I need to open other tabs and accidentally close this one when I navigate back/view changed files; and GitHub just dumps all my efforts. I strongly agree that either prompting "are you sure to leave and discard unsaved changes" or saving in a cache works well to resolve this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just lost an hour writing a comment, clicked a hyperlink in said comment to ensure it went to the right place and it opened in the same window rather than a new window. Lost everything. Really frustrating |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
When adding a comment in the "Files changed" area of a PR, anything entered is lost if the window is accidentally closed or another page is visited (even switching between Conversation/Commits/Checks/Files changed tabs). There is no warning alert on window close, and the draft unsubmitted comment is not saved anywhere (even browser local storage) and/or is not easily discovered. This can lead to a frustrating loss of work and time.
I've possibly seen some evidence of unsubmitted comment text on single-line comments being saved, but I don't know if it's GitHub or Chrome (or a Chrome extension) doing that. If it is GitHub, the draft comment is completely undiscoverable and seems to not work at all for comments being added to multiple lines of code in the PR.
Possible enhancements are:
Beta Was this translation helpful? Give feedback.
All reactions