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

Files 1

History 611

  1. Gerrit Code Review pushed patch set 1 for main to change 86701 status Accepted Under Review <span data-processor="relativetime" data-value="2024-10-23T06:45:58+00:00" > 10/23/24, 06:45 </span>

  2. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-10-30T12:00:08+00:00" > 10/30/24, 12:00 </span>

    Applied in changeset commit:d3dec09d3dba827a0ac9f2b9a1f32d4d8cc2cc7b.