From f11664cb3da7d6e9f94c7e33227e19dfb38143f9 Mon Sep 17 00:00:00 2001 From: Alan Date: Sun, 15 Mar 2020 12:20:07 +0800 Subject: [PATCH] The date checking bug prevents UPDATE event --- build/js/tempusdominus-bootstrap-4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/js/tempusdominus-bootstrap-4.js b/build/js/tempusdominus-bootstrap-4.js index b33f791..14cdcaa 100644 --- a/build/js/tempusdominus-bootstrap-4.js +++ b/build/js/tempusdominus-bootstrap-4.js @@ -561,7 +561,7 @@ var DateTimePicker = function ($, moment) { }; DateTimePicker.prototype._notifyEvent = function _notifyEvent(e) { - if (e.type === DateTimePicker.Event.CHANGE && (e.date && e.date.isSame(e.oldDate)) || !e.date && !e.oldDate) { + if (e.type === DateTimePicker.Event.CHANGE && ((e.date && e.date.isSame(e.oldDate)) || !e.date && !e.oldDate)) { return; } this._element.trigger(e);