#92913Datepicker flatpickr does not update required check / formvalidation
Description
The new datetime picker (Task #91606) does not update the input validation after picking a datetime.
Requirements
- current master (e.g. e3746d4454f978bb18065d9d838cbcaee4c0b49d)
Steps to reproduce
TCA with required datepicker:
'a' => [
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,required',
],
],
Steps:
- Create new record
- Pick a datetime with the dialog / button
- Save the form
Actual result
The field is marked as invalid and cannot be saved:
“The fields marked with an exclamation mark are not yet correctly filled in“
datepicker-invalid.png
Expected result
The validation marker should disapear and the form can be saved.
Additional notes
- After editing the input manually (e.g. type something in and remove it) the input is valid