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 {
cell = DomHandler.findSingle(this.$refs.overlay, 'span.p-highlight');
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)
cell = todayCell.children[0];
cell = todayCell;
else
cell = DomHandler.findSingle(this.$refs.overlay, '.p-datepicker-calendar td span:not(.p-disabled)');
}