You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the Problem:
The DateField in WTForms triggers a 'Not a valid date value' validation error when left empty, even if no validators are specified. This behavior prevents the field from being optional and can result in unexpected validation failures.
Reproduction Steps:
Create a FlaskForm with a DateField and no validators.
Submit the form with the DateField left empty.
Observe that the field triggers a validation error.
Expected Behavior:
The DateField should pass validation when empty, as no validators are present to enforce input.
Description of the Problem:
The
DateField
inWTForms
triggers a'Not a valid date value'
validation error when left empty, even if no validators are specified. This behavior prevents the field from being optional and can result in unexpected validation failures.Reproduction Steps:
FlaskForm
with aDateField
and no validators.DateField
left empty.Expected Behavior:
The
DateField
should pass validation when empty, as no validators are present to enforce input.Environment Details:
Code Example:
The text was updated successfully, but these errors were encountered: