codedance / jquery.AreYouSure

A light-weight jQuery "dirty forms" Plugin - it monitors html forms and alerts users to unsaved changes if they attempt to close the browser or navigate away from the page. (Are you sure?)
508 stars 145 forks source link

Use with Heap Analytics + Return Key? #103

Open gblakeman opened 8 years ago

gblakeman commented 8 years ago

Has anyone used this successfully with Heap Analytics?

When a form is submitted via the enter/return key, it mis-fires. I can sort of get it to work by delaying the areYouSure() initialization with a timeout, but it’s not consistent.