forms-frontend icon indicating copy to clipboard operation
forms-frontend copied to clipboard

Prevent Accidental Closing of Form

Open janine9vn opened this issue 3 years ago • 0 comments

Description

A user can currently accidentally close a form in-progress, losing everything they have so far typed out. We should do our best to ensure that this doesn't happen.

Implementation

The browser provides an API for prompting a user before they close the tab. You may have seen on different websites.

Refer to this Stackoverflow question as well as the MDN docs for this.

janine9vn avatar Dec 26 '21 02:12 janine9vn