deck9 / input

A privacy-focused, no-code, open-source form builder designed for simplicity and brand consistency.
https://getinput.co
GNU Affero General Public License v3.0
188 stars 30 forks source link

Add beforeUnloadEvent to prevent leaving form without saving #41

Closed PhilReinking closed 2 years ago

PhilReinking commented 2 years ago

I think it should be somehow a best practice to prevent the case where a user accidentally loses his input data when he has not saved the form yet.

One way to do that is to prevent navigating to another page if the form is unsaved.