Use novalidate for form renderer.

This commit is contained in:
Dillon Kearns 2022-06-16 09:37:10 -07:00
parent b3917352c1
commit f6f32dee44

View File

@ -653,6 +653,7 @@ renderHelper formState data (CombinedParser fieldDefinitions parser toInitialVal
(Form.listeners formId
++ [ -- TODO remove hardcoded method - make it part of the config for the form? Should the default be POST?
Attr.method "POST"
, Attr.novalidate True
, -- TODO need to make an option to choose `Pages.Msg.fetcherOnSubmit`
-- TODO `Pages.Msg.fetcherOnSubmit` needs to accept an `isValid` param, too
Pages.Msg.submitIfValid