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
Observe that the inputs are showing an error border but there is no error message (ie. "Please enter a month between 1 and 12").
What I expect to happen
I'm not sure if the expected behavior is for full validation to run which includes displaying the validation error message(s), or, if spaces in inputs should be sanitized. I'm leaning towards sanitization (no error displayed) but we might want to confirm with the team.
2. Validation error does not unset after clearing out values (non-required field)
Steps to reproduce
In Storybook, in the Month, Day, and Year inputs type 10 10 2010
Tab out and observe there is no validation error
Go to Month, Day, and Year and delete all inputs.
In the Month, Day, and Year inputs type 10 10 20.
Tab out and observe the year shows a validation error.
Go to Month, Day, and Year and delete all inputs.
Tab out of the component.
Observe the year still shows a validation error:
What I expect to happen
I expect that if there is a validation error but I clear out all of the inputs, the validation error would automatically go away without me needed to enter any other values.
Screen.Recording.2025-09-12.at.9.07.16.AM.mov
Tasks
Validate the two validation issues above
Update the validation utils file and/or component so that it addresses those issues.
Description
There are two validation edge cases that we should look into:
1. Using spaces in the inputs causes fields to display an error border but no error message (non-required field)
Steps to reproduce:
Observe that the inputs are showing an error border but there is no error message (ie. "Please enter a month between 1 and 12").
What I expect to happen
I'm not sure if the expected behavior is for full validation to run which includes displaying the validation error message(s), or, if spaces in inputs should be sanitized. I'm leaning towards sanitization (no error displayed) but we might want to confirm with the team.
2. Validation error does not unset after clearing out values (non-required field)
Steps to reproduce
Observe the year still shows a validation error:
What I expect to happen
I expect that if there is a validation error but I clear out all of the inputs, the validation error would automatically go away without me needed to enter any other values.
Screen.Recording.2025-09-12.at.9.07.16.AM.mov
Tasks
va-datecomponent tooAcceptance Criteria