Prevent losing draft comments on navigation or if a window is closed #68448
Replies: 7 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.
-
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.
-
Beta Was this translation helpful? Give feedback.
-
I HATE doing PRs on GitHub for this very reason. |
Beta Was this translation helpful? Give feedback.
-
This would be immensely helpful. I had typed up a long draft for github issue but my laptop battery reached 0% and it shut down ( I somehow missed it in midst of doing multi-tasking multiple things), when I started it back and restarted the browser, the issues page loaded but empty content. |
Beta Was this translation helpful? Give feedback.
-
Happened to me just now. I was writing an invested and detailed comment, and paused to check some email. By mistake closed the tab and now seem to have lost the comment... As mentioned in comments above me, a browser alert would be very helpful. |
Beta Was this translation helpful? Give feedback.
-
Oh, this just happen to me - not due to I mis clicked something, but rather stupid company policy forcibly restarted my Chrome just in the middle of typing. |
Beta Was this translation helpful? Give feedback.
-
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