Skip to content

Commit

Permalink
fix: onBlur validation support @rjsf/core v2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Feb 18, 2021
1 parent 8fe3423 commit 8aa156f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/components/Forms/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ export default class Form<T> extends JsonSchemaForm<T> {
fieldPath[fieldPath.length - 1]
] = blurredFieldErrorSchema;

const errorList = toErrorList(mergedErrorSchema);
this.setState(
{
errors: toErrorList(mergedErrorSchema),
errorSchema: mergedErrorSchema
errors: errorList,
errorSchema: mergedErrorSchema,
schemaValidationErrors: errorList,
schemaValidationErrorSchema: mergedErrorSchema
},
() => {
superOnBlur(id, value);
Expand Down

0 comments on commit 8aa156f

Please sign in to comment.