From 759161aad0224ac899240fe6469bce5ca743f8c8 Mon Sep 17 00:00:00 2001 From: Joe Tannenbaum Date: Thu, 9 Jan 2025 14:53:40 -0500 Subject: [PATCH] defaults, not data --- packages/vue3/src/useForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue3/src/useForm.ts b/packages/vue3/src/useForm.ts index 075dcd978..3613c627c 100644 --- a/packages/vue3/src/useForm.ts +++ b/packages/vue3/src/useForm.ts @@ -91,7 +91,7 @@ export default function useForm( return this }, reset(...fields) { - const resolvedData = typeof data === 'function' ? cloneDeep(data()) : cloneDeep(data) + const resolvedData = typeof data === 'function' ? cloneDeep(data()) : cloneDeep(defaults) const clonedData = cloneDeep(resolvedData) if (fields.length === 0) { defaults = clonedData