From 8e7192ad8dea6ce46df329f39c8aee7be145d370 Mon Sep 17 00:00:00 2001 From: Alex Cioarec Date: Wed, 31 Jul 2024 16:28:32 +0300 Subject: [PATCH] Fix datepicker unstyled Make selections based on attributes not classes --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index fd645695e..d2e4dd48f 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -2516,7 +2516,7 @@ export default { cell = findSingle(this.overlay, 'span[data-p-selected="true"]'); if (!cell) { - let todayCell = findSingle(this.overlay, 'td.p-datepicker-today span:not([data-p-disabled="true"]):not([data-p-ink="true"])'); + let todayCell = findSingle(this.overlay, 'td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])'); if (todayCell) cell = todayCell; else cell = findSingle(this.overlay, '.p-datepicker-calendar td span:not([data-p-disabled="true"]):not([data-p-ink="true"])');