Skip to content

Commit 6ad0d05

Browse files
committed
fix vue is dirty after form defaults
1 parent 3a56916 commit 6ad0d05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vue3/src/useForm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default function useForm<TForm extends FormDataType>(
8080

8181
if (typeof fieldOrFields === 'undefined') {
8282
defaults = this.data()
83+
this.isDirty = false
8384
} else {
8485
defaults = Object.assign(
8586
{},

0 commit comments

Comments
 (0)