From 9994bb9b9dd13e50af462853f563f14d28e41691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20FINDIKLI?= Date: Fri, 17 Jan 2020 15:18:45 +0300 Subject: [PATCH] Fixed #141 Calendar giving focus to today when disabled --- src/components/calendar/Calendar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index d980f4be2..0ade4b6a4 100644 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -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)'); }