Skip to main content

Craft CMS creates dialog when page refreshed or navigated

After implementing our plugin, you might be seing this type of messages popping up "Changes you made may not be saved". This is a known problem with the forms used in Craft CMS.

To fix the problem:

Simply add the following code after page load.

Formie.forms.forEach(function(f) {
	f.removeEventListener('beforeunload')
})