Skip to content

Commit 6e35315

Browse files
Update handling-forms.mdx (#5052)
Fix the code errors in the handling-forms.mdx file
1 parent 7d849e0 commit 6e35315

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/pages/guide/components/handling-forms.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ If you have a `submit` listener on the `Form` component, vee-validate assumes yo
9191
But in the case when you don't have a `submit` listener on your form, vee-validate assumes that the form will be submitted using the native HTML submission that causes the page to "reload". However vee-validate will make sure the form is not submitted unless all fields are valid, here is an example:
9292

9393
```vue-html
94-
<Form method="post" action="/api/users" :validation-schema="schema" />
95-
<Field name="email" />
96-
<Field name="name" type="email" />
94+
<Form method="post" action="/api/users" :validation-schema="schema">
95+
<Field name="email" type="email" />
96+
<Field name="name" />
9797
<Field name="password" type="password" />
9898
9999
<button>Submit</button>

0 commit comments

Comments
 (0)