Skip to content

Commit

Permalink
Fix #2037 datepicker when multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
jtommy committed Nov 29, 2019
1 parent 66e0516 commit 23ea198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datepicker/DatepickerTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default {
const multipleSelect = this.multipleSelectedDates.filter((selectedDate) =>
selectedDate.getTime() === date.getTime()
)
if (multipleSelect) {
if (multipleSelect.length) {
this.multipleSelectedDates = this.multipleSelectedDates.filter((selectedDate) =>
selectedDate.getTime() !== date.getTime()
)
Expand Down

0 comments on commit 23ea198

Please sign in to comment.