Problem/Motivation

When a date field has a min/max value set it will always fail validation.

Steps to reproduce

Create a form with a date input. Set a min or max value, or both. Ensure clientside validation is turned on. Enter a date. Press tab to next form element. No matter what the settings it will fail validation.

Proposed resolution

Currently there is a behaviour which removes the step and min values. The min value is actually removed twice and the max value is not removed. I will change it to remove the max value also.

Issue fork webform-3239707

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AverilL created an issue. See original summary.

AverilL’s picture

Title: I » Clientside validation always validates against max value and fails for date field

  • 6e6a860 committed on 8.x-5.x
    Issue #3239707 by AverilL: Clientside validation always validates...

  • 6e6a860 committed on 6.x
    Issue #3239707 by AverilL: Clientside validation always validates...
jrockowitz’s picture

Status: Active » Fixed

Doh!!! (on my part) Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.