tempusdominus / bootstrap-4

Tempus Dominus Bootstrap 4 Datetime Picker
https://getdatepicker.com/5-4/
MIT License
610 stars 238 forks source link

After destroying DTP, change event still fires #184

Open barrychapman opened 6 years ago

barrychapman commented 6 years ago

After running $('#birthdatePicker').datetimepicker('destroy'); I still get an event firing when the field is blurred:

image

With my particular script it causes recursion loops and a bunch of other not-fun stuff.

When I do not have my script in use, and I click on the FIELD [not the handler] when it is READONLY, I get this error:

image

Thanks

benjamindell commented 5 years ago

Did you find a solution to this? Im pulling my hair out trying to work out what to do here :(

ricardo-bazan commented 5 years ago

same problem and maybe worse, using $('#birthdatePicker').datetimepicker('destroy'); doesn't destroy and events still active had to use $('#f_beginDate_search').datetimepicker({destroy: true});