Date test values can be out of range in case of maximum and no minimum date

Created on 22 August 2025, 3 days ago

Problem/Motivation

In case of a Webform with a maximum date and no minimum date, test values can be generated out of range, failing validation when trying to submit the test form.

Steps to reproduce

Add a date element with no 'Date minimum' and with 'today -16 years' as 'Date maximum'. Visit the Webform test form. There's a chance that a out of range is prefilled.

Proposed resolution

Change how test values are generated in case of maximum and no minimum date.

πŸ› Bug report
Status

Active

Version

6.3

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024