From 28557d898d456cf6337777789a66146eefbc8291 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Thu, 10 Oct 2024 06:21:32 -0500 Subject: [PATCH] Fix another minor observed issue. When using the "Today" or "Now" buttons, the "changed" class is not being added to the input. When the handlers for those buttons are called, the "change" event needs to be triggered so that this happens. --- htdocs/js/DatePicker/datepicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/js/DatePicker/datepicker.js b/htdocs/js/DatePicker/datepicker.js index 04ba72cb46..3690415b72 100644 --- a/htdocs/js/DatePicker/datepicker.js +++ b/htdocs/js/DatePicker/datepicker.js @@ -110,9 +110,9 @@ selectedDate.setFullYear(today.getFullYear()); selectedDate.setMonth(today.getMonth()); selectedDate.setDate(today.getDate()); - fp.setDate(selectedDate); + fp.setDate(selectedDate, true); } else if (index === 1) { - fp.setDate(new Date()); + fp.setDate(new Date(), true); } } })