Fix datepicker unstyled

Make selections based on attributes not classes
pull/6155/head
Alex Cioarec 2024-07-31 16:28:32 +03:00
parent 2d5c7461ef
commit 8e7192ad8d
1 changed files with 1 additions and 1 deletions

View File

@ -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"])');