Do not unregister form (#856)
Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
co-authored by
philon-
parent
d5610de826
commit
1bdd923365
@@ -90,7 +90,6 @@ export function DynamicForm<T extends FieldValues>({
|
|||||||
? createZodResolver(validationSchema)
|
? createZodResolver(validationSchema)
|
||||||
: undefined,
|
: undefined,
|
||||||
shouldFocusError: false,
|
shouldFocusError: false,
|
||||||
shouldUnregister: true,
|
|
||||||
resetOptions: { keepDefaultValues: true },
|
resetOptions: { keepDefaultValues: true },
|
||||||
values,
|
values,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user