Commit ce2d2b723577207be906b6a611c0729852b576de
1 parent
19b6c005
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); | ... | ... |