-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
This library injects the required attribute into rendered field HTML if the flag is set on the field in Python: https://github.com/LandRegistry/govuk-frontend-wtf/blob/main/govuk_frontend_wtf/wtforms_widgets.py#L28-L29
This causes the browser to pre-validate empty fields and reject the form submission/shows a native popup like this:

GOV.UK Design System says to turn off HTML5 validation.
We can bypass this by adding novalidate to the form tag - but just flagging in case this lib should also just not add the required attributes in the first place?
Metadata
Metadata
Assignees
Labels
No labels