Skip to content

Commit 4addb47

Browse files
authored
chore: useSetFormValues shouldValidate param (#4446)
1 parent b53400e commit 4addb47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vee-validate/src/useSetFormValues.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { injectWithSelf, warn } from './utils';
77
export function useSetFormValues() {
88
const form = injectWithSelf(FormContextKey);
99

10-
function setFormValues(fields: Record<string, unknown>) {
10+
function setFormValues(fields: Record<string, unknown>, shouldValidate = true) {
1111
if (form) {
12-
form.setValues(fields);
12+
form.setValues(fields, shouldValidate);
1313
return;
1414
}
1515

0 commit comments

Comments
 (0)