Skip to content

Commit 977e44f

Browse files
committed
disable button when form has errors
1 parent 6047c9b commit 977e44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: playground/pages/todo-precog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const submitForm = async () => {
5252
</div>
5353

5454
<div>
55-
<ButtonPrimary :disabled="form.processing">
55+
<ButtonPrimary :disabled="form.processing || form.hasErrors">
5656
Submit
5757
</buttonprimary>
5858
</div>

0 commit comments

Comments
 (0)