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.38k stars 2.19k forks source link

Validation regression starting from version 5.20.0+ #4343

Closed AlimovSV closed 3 weeks ago

AlimovSV commented 1 month 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 1 month ago

Looks like the problem is caused by commit

heath-freenome commented 1 month ago

@abdalla-rko It looks like a commit of your is causing a regression. Can you look at it?