Project

General

Profile

Actions

Bug #92913

closed

Datepicker flatpickr does not update required check / formvalidation

Added by Imko Schumacher almost 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 #1

Updated by Georg Ringer almost 4 years ago

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

Updated by Georg Ringer almost 4 years ago

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

Updated by Gerrit Code Review almost 4 years 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

Actions #4

Updated by Andreas Fernandez almost 4 years ago

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

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF