Skip to content

Commit

Permalink
Fix another minor observed issue.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
drgrice1 committed Oct 10, 2024
1 parent 213679c commit c003744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/js/DatePicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
})
Expand Down

0 comments on commit c003744

Please sign in to comment.