tempusdominus - Event handling

Tips submitted by PHPMaker users
Post Reply
xxltomcat
User
Posts: 107

tempusdominus - Event handling

Post by xxltomcat »

Hi, I recently had a problem handling events in the new datetimepicker- extension (tempusdominus). No events were fired for show, update and hide.

After research I found the solution in line 564 of tempusdominus-bootstrap-4.js:

Change

if (e.type === DateTimePicker.Event.CHANGE && (e.date && e.date.isSame(e.oldDate)) || !e.date && !e.oldDate) {

to

if (e.type === DateTimePicker.Event.CHANGE && (e.date && e.date.isSame(e.oldDate) || !e.date && !e.oldDate)) {

Regards


Post Reply