You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix 4782 to support proper live validation (#4785)
* Fix 4782 to support proper live validation
Fixed#4782 by fixing `getStateFromProps()` around the new `skipLiveValidate` optimization flag
- Updated `Form` to skip clearing the `errorSchema` for a field that was changed when the `mustValidate` flag is true
- Updated the `mustValidate` flag to remove the `!skipLiveValidate` from it's assignment, moving it to the live validation branch instead
- Updated `Playground` to make the `onChange()` handler separate the event from the destructure to assist in better debugging
- Updated the `CHANGELOG.md` file accordingly
* - Updated `filterErrorsBasedOnSchema()` to properly merge errors when `customValidate` is provided
* - Fixed 4784 by allowing non-empty objects for leaf-level fields
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,18 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
15
15
should change the heading of the (upcoming) version to include a major version bump.
16
16
17
17
-->
18
+
# 6.0.0-beta.19
19
+
20
+
## @rjsf/core
21
+
22
+
- Updated `Form` to fix live validation in `getStateFromProps()` broken by an optimization, fixing [#4782](https://github.com/rjsf-team/react-jsonschema-form/issues/4782)
23
+
- Updated `Form` to fix error messages being displayed abnormally when `customValidate` is provided, fixing [#4783](https://github.com/rjsf-team/react-jsonschema-form/issues/4783)
24
+
- Updated `Form` to fix `omitExtraData` when the leaf node happens to have an object value, fixing [#4784](https://github.com/rjsf-team/react-jsonschema-form/issues/4784)
25
+
26
+
## @rjsf/utils
27
+
28
+
- Updated `resolveSchema()` to pass the `experimental_customMergeAllOf` options properly to `resolveReference()` and `resolveDependencies()` called within it
0 commit comments