Fixed #141 Calendar giving focus to today when disabled
parent
172f0a395d
commit
9994bb9b9d
|
@ -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)');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue