Project

General

Profile

Actions

Bug #92913

closed

Datepicker flatpickr does not update required check / formvalidation

Added by Imko Schumacher about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
-
Start date:
2020-11-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
datepicker, flatpickr, eval required
Complexity:
Is Regression:
Sprint Focus:

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"

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

Files

datepicker-invalid.png (1.44 KB) datepicker-invalid.png Imko Schumacher, 2020-11-23 20:54

Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF