rjsf-team / react-jsonschema-form

A React component for building Web forms from JSON Schema.
https://rjsf-team.github.io/react-jsonschema-form/
Apache License 2.0
14.28k stars 2.18k forks source link

Validation regression starting from version 5.20.0+ #4343

Open AlimovSV opened 3 hours ago

AlimovSV commented 3 hours ago

Prerequisites

What theme are you using?

core

Version

5.21.2

Current Behavior

If formData changes externally and liveValidate is true, errors are not re-validated based on the new formData. Version 5.19.4 works fine. This issue causes a problem in the scenario where the data is stored in an external storage and the schema has widgets that open dialogs that change the data using redux actions. In this case, the user sees the field filled in, but in an invalid state.

Expected Behavior

Errors should be actual against form data

Steps To Reproduce

Environment

- OS:
- Node:
- npm:

Anything else?

No response

AlimovSV commented 3 hours ago

Looks like the problem is caused by commit