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
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:
- 6.x changes, plain diff MR !57
- 3239707-i changes, plain diff MR !56
Comments
Comment #2
AverilL CreditAttribution: AverilL commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House for Memorial Sloan Kettering Cancer Center commentedDoh!!! (on my part) Thanks for the patch.