Commit 5c35f446516d2b6f91693f7ac87547ac1a45ec50

Authored by Aresn
Committed by GitHub
2 parents 28a0f8b0 ce2d2b72

Merge pull request #4253 from SergioCrisostomo/datepicker-4127

Parse dates to be sure we consume correct format
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/components/date-picker/picker.vue
... ... @@ -646,6 +646,7 @@
646 646 }
647 647 },
648 648 onPick(dates, visible = false, type) {
  649 + dates = this.parseDate(dates);
649 650 if (this.multiple){
650 651 const pickedTimeStamp = dates.getTime();
651 652 const indexOfPickedDate = this.internalValue.findIndex(date => date && date.getTime() === pickedTimeStamp);
... ...