Skip to content

Conversation

@elijah-wright
Copy link

Summary

this PR fixes the skipped tests in DatePicker.test.tsx by adjusting DatePicker to validate on blur rather than with a useEffect hook, which matches with USWDS. it also sets the aria-invalid attribute and uses reportValidity to send VALIDATION_MESSAGE to the user. this PR also changes some of the tests that were dependent on the useEffect behavior

Related Issues or PRs

none

How To Test

yarn test

@elijah-wright elijah-wright changed the title validate DatePicker on blur fix: validate DatePicker on blur Jun 7, 2025
@abbyoung
Copy link
Contributor

@elijah-wright hello! i noticed this is marked Draft. is this PR still being worked on?

@elijah-wright
Copy link
Author

elijah-wright commented Aug 27, 2025

yea, I just wanted more feedback first, esp because I also added sending validation to the user

@elijah-wright elijah-wright marked this pull request as ready for review August 27, 2025 19:12
@elijah-wright elijah-wright requested a review from a team as a code owner August 27, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants