Skip to content

Commit

Permalink
Merge pull request #28311 from staszekscp/form-provider-fix
Browse files Browse the repository at this point in the history
Fix validation bug in FormProvider
  • Loading branch information
luacmartins authored Sep 29, 2023
2 parents 4208f74 + 66b89dd commit 2f53f4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Form/FormProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ function FormProvider({validate, shouldValidateOnBlur, shouldValidateOnChange, c
(values) => {
const validateErrors = validate(values);
setErrors(validateErrors);
return validateErrors;
},
[validate],
);
Expand Down

0 comments on commit 2f53f4f

Please sign in to comment.