Skip to content

Commit

Permalink
Merge pull request #160 from Nerderer/master
Browse files Browse the repository at this point in the history
Fixed broken today button in the Calendar component
  • Loading branch information
cagataycivici authored Jan 30, 2020
2 parents 8e87825 + 89f9f10 commit 99a2ee6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,10 @@ export default {
}
DomHandler.find(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(cell => cell.tabIndex = -1);
event.currentTarget.focus();
if (event) {
event.currentTarget.focus();
}
if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
let newValue = this.value.filter(date => !this.isDateEquals(date, dateMeta));
Expand Down

0 comments on commit 99a2ee6

Please sign in to comment.