Issue Bug Closed

#105400DateTimePicker Range doesnt work.

Tobias Quadflieg 10/23/24, 06:36 updated 12/02/25, 14:32

Description

Since the rework away from JQuery the Datepicker Range doesnt work anymore.
The issue is that the data field is not correctly writen in camelCase.

The data fields are data-date-min-date and data-date-max-date but the code references to dataset.dateMindate

   if (inputElement.dataset.dateMindate !== 'undefined') {
      options.minDate = inputElement.dataset.dateMindate;
    }
    if (inputElement.dataset.dateMaxdate !== 'undefined') {
      options.maxDate = inputElement.dataset.dateMaxdate;
    }

When the date picker is initialized the min/max is always undefined.

Thanks for fixing!

Reviews 5