diff --git a/src/js/tempusdominus-core.js b/src/js/tempusdominus-core.js index 8c4b5b3..d4f7a40 100644 --- a/src/js/tempusdominus-core.js +++ b/src/js/tempusdominus-core.js @@ -415,6 +415,7 @@ const DateTimePicker = (($, moment) => { } _setValue(targetMoment, index) { + index = index || 0; const oldDate = this.unset ? null : this._dates[index]; let outpValue = ''; // case of calling setValue(null or false)