Bug #92913

Datepicker flatpickr does not update required check / formvalidation

Added by Imko Schumacher about 1 year ago. Updated about 1 year 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

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

Actions
#1

Updated by Georg Ringer about 1 year ago

  • Related to Task #91606: Replace bootstrap-datetime picker added
#2

Updated by Georg Ringer about 1 year ago

  • Status changed from New to Accepted
  • Assignee set to Andreas Fernandez
#3

Updated by Gerrit Code Review about 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66966

#4

Updated by Andreas Fernandez about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#5

Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF