Actions
Bug #105400
closedDateTimePicker Range doesnt work.
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
Actions