Skip to content

Conversation

@jeremystretch
Copy link
Member

Fixes: #20398

  • Remove the TypeScript which applies the is-invalid CSS class to form fields with invalid values on form submit
  • Remove the call to event.preventDefault() to allow the native browser validation to take over
  • Remove the now-obsolete generic "This field is required" warning from the form template

@jeremystretch jeremystretch requested review from a team and jnovinger and removed request for a team September 19, 2025 19:42
Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@jnovinger jnovinger merged commit 6547a16 into main Sep 19, 2025
10 checks passed
@jnovinger jnovinger deleted the 20398-foem-field-validation branch September 19, 2025 20:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Min/max validation failures for numeric fields is misleading

3 participants