Merge pull request #160 from Nerderer/master

Fixed broken today button in the Calendar component
pull/201/head
Cagatay Civici 2020-01-30 09:56:41 +03:00 committed by GitHub
commit 99a2ee698e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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));