Skip to content

Commit

Permalink
fix: update the valid flag regardless of mode closes #3284
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Apr 27, 2021
1 parent 4811876 commit 6594ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vee-validate/src/useForm.ts
Expand Up @@ -565,9 +565,9 @@ async function validateYupSchema<TValues>(
};

result[fieldId] = fieldResult;
// always update the valid flag regardless of the mode
applyFieldMutation(field, f => (f.meta.valid = fieldResult.valid));
if (mode === 'silent') {
applyFieldMutation(field, f => (f.meta.valid = fieldResult.valid));

return result;
}

Expand Down

0 comments on commit 6594ad1

Please sign in to comment.