mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 23:12:22 +03:00
Use novalidate for form renderer.
This commit is contained in:
parent
b3917352c1
commit
f6f32dee44
@ -653,6 +653,7 @@ renderHelper formState data (CombinedParser fieldDefinitions parser toInitialVal
|
|||||||
(Form.listeners formId
|
(Form.listeners formId
|
||||||
++ [ -- TODO remove hardcoded method - make it part of the config for the form? Should the default be POST?
|
++ [ -- TODO remove hardcoded method - make it part of the config for the form? Should the default be POST?
|
||||||
Attr.method "POST"
|
Attr.method "POST"
|
||||||
|
, Attr.novalidate True
|
||||||
, -- TODO need to make an option to choose `Pages.Msg.fetcherOnSubmit`
|
, -- TODO need to make an option to choose `Pages.Msg.fetcherOnSubmit`
|
||||||
-- TODO `Pages.Msg.fetcherOnSubmit` needs to accept an `isValid` param, too
|
-- TODO `Pages.Msg.fetcherOnSubmit` needs to accept an `isValid` param, too
|
||||||
Pages.Msg.submitIfValid
|
Pages.Msg.submitIfValid
|
||||||
|
Loading…
Reference in New Issue
Block a user