Issue Bug Closed

#92913Datepicker flatpickr does not update required check / formvalidation

Imko Schumacher 11/23/20, 20:56 updated 12/22/20, 11:02

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:

  1. Create new record
  2. Pick a datetime with the dialog / button
  3. 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

Reviews 1