tempusdominus / bootstrap-4

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

about clear button bug fix for v5.39.0 #368

Open mbdmt opened 3 years ago

mbdmt commented 3 years ago

v5.39.0 My own situation, After clicking the clear button, today’s date cannot be selected. This is my own modification, please tell me if there is a problem with this modification

line 673: this.input.val("" + (this.unset ? '' : this._dates[index].format(this.actualFormat)));

fix : this.input.val("" + (this.unset ? '' : this.getMoment().format(this.actualFormat)));