Skip to content

Comment is lost when leaving page while submitting

Summary

When leaving a page after clicking the comment submit button but before the comment was successfully submitted, the comment is lost.

Steps to reproduce

  • type something into comment textarea
  • change network connection to slow in developer tools
  • click submit button
  • close tab
  • restore tab

What is the current bug behavior?

Comment is lost.

What is the expected correct behavior?

Comment draft is kept until the comment was successfully submitted.

Screenshots

lost-comment