Fixed #141 Calendar giving focus to today when disabled

pull/146/head
Yiğit FINDIKLI 2020-01-17 15:18:45 +03:00
parent 172f0a395d
commit 9994bb9b9d
1 changed files with 2 additions and 2 deletions

View File

@ -1809,9 +1809,9 @@ export default {
else { else {
cell = DomHandler.findSingle(this.$refs.overlay, 'span.p-highlight'); cell = DomHandler.findSingle(this.$refs.overlay, 'span.p-highlight');
if (!cell) { if (!cell) {
let todayCell = DomHandler.findSingle(this.$refs.overlay, 'td.p-datepicker-today'); let todayCell = DomHandler.findSingle(this.$refs.overlay, 'td.p-datepicker-today span:not(.p-disabled)');
if (todayCell) if (todayCell)
cell = todayCell.children[0]; cell = todayCell;
else else
cell = DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)'); cell = DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
} }