Parse dates to be sure we consume correct format

This commit is contained in:
SergioCrisostomo 2018-08-10 09:47:05 +02:00
parent 19b6c005b3
commit ce2d2b7235

View file

@ -646,6 +646,7 @@
}
},
onPick(dates, visible = false, type) {
dates = this.parseDate(dates);
if (this.multiple){
const pickedTimeStamp = dates.getTime();
const indexOfPickedDate = this.internalValue.findIndex(date => date && date.getTime() === pickedTimeStamp);