Fixes #20398: Rely on browser-native form field validation #1206

Closed
opened 2026-04-05 21:56:32 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jeremystretch on 9/19/2025

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
*Originally created by @jeremystretch on 9/19/2025* ### 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
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1206