Project

General

Profile

Actions

Bug #105400

closed

DateTimePicker Range doesnt work.

Added by Tobias Quadflieg about 1 month ago. Updated 23 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2024-10-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

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!


Files

typo3-date-picker-range-error.png (20.5 KB) typo3-date-picker-range-error.png Tobias Quadflieg, 2024-10-23 06:34

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #91606: Replace bootstrap-datetime pickerClosedAndreas Kienast2020-06-08

Actions
Related to TYPO3 Core - Task #105429: Add TCA type=datetime example with upper+lowerResolvedGarvin Hicking2024-10-24

Actions
Actions

Also available in: Atom PDF