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

Datepicker issue #132

Open steveyj79 opened 6 years ago

steveyj79 commented 6 years ago

When using a datepicker, the are you sure flag never gets set as modified due to the fact datepickers never enters a keypress,

a simple fix for this would be to add

'fieldEvents' : 'dp.change change keyup propertychange input',

to the library this would then flag for date pickers, for now we've extended your library to implement a change similar to this in our library, but would be awesome if a fix code be made to fix this issue