Skip to content

Commit

Permalink
feat: 1-step form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscooke committed Apr 21, 2020
1 parent 407d727 commit 48318d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/containers/Forms/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const FormComponent: React.FunctionComponent<Props> = ({
)}
<JsonSchemaForm
safeRenderCompletion
noHtml5Validate
showErrorList={false}
ArrayFieldTemplate={FormArrayFieldTemplate}
FieldTemplate={FormFieldTemplate}
Expand Down
4 changes: 2 additions & 2 deletions app/tests/integration/Forms/__snapshots__/Form.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`Form should match the snapshot with the administration form 1`] = `
</div>
<form
className="rjsf"
noValidate={false}
noValidate={true}
onSubmit={[Function]}
>
<div
Expand Down Expand Up @@ -1308,7 +1308,7 @@ exports[`Form should match the snapshot with the emission form 1`] = `
</div>
<form
className="rjsf"
noValidate={false}
noValidate={true}
onSubmit={[Function]}
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports[`The Form Component should match the snapshot 1`] = `
}
formData={Object {}}
liveValidate={false}
noHtml5Validate={false}
noHtml5Validate={true}
noValidate={false}
omitExtraData={false}
onError={[Function]}
Expand Down

0 comments on commit 48318d1

Please sign in to comment.