Skip to content

Commit

Permalink
fix(vue/useForm/defaults): untrack before assign
Browse files Browse the repository at this point in the history
  • Loading branch information
Dsaquel committed Nov 30, 2024
1 parent 9106d74 commit 3fb1b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue3/src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function useForm<TForm extends FormDataType>(
}

if (typeof fieldOrFields === 'undefined') {
defaults = this.data()
defaults = cloneDeep(this.data())
} else {
defaults = Object.assign(
{},
Expand Down

0 comments on commit 3fb1b43

Please sign in to comment.