CMS add/edit-article (chiangmai, where-else): remove flatpickr onReady todayDateElem highlight; element is null/undefined at onReady and the class has no CSS, and the throw could prevent the Save handler from binding on add pages

This commit is contained in:
kurogeek committed 2026-10-27 02:07:59 +00:00
1 parent d49c3e2d97
commit e94d72130d
4 files changed
-20

No files matched your search

@@ -297,11 +297,6 @@
enableTime: false,
dateFormat: 'd-m-Y',
defaultDate: null, // Do not preselect any date
onReady: function(selectedDates, dateStr, instance) {
// Highlight today's date with a custom CSS class
const today = instance.todayDateElem;
today.classList.add('flatpickr-today-highlight'); // Add a custom class to today
}
});
});