@rjsf/core 5.15.0 → 5.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.umd.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/lib/components/Form.js +3 -1
- package/lib/components/Form.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/src/components/Form.tsx +5 -1
package/dist/core.umd.js
CHANGED
|
@@ -2968,7 +2968,7 @@
|
|
|
2968
2968
|
} else if (key === utils.NAME_KEY && _obj[key] !== "") {
|
|
2969
2969
|
paths.forEach((path) => {
|
|
2970
2970
|
const formValue = get3(formData, path);
|
|
2971
|
-
if (typeof formValue !== "object" || isEmpty(formValue)) {
|
|
2971
|
+
if (typeof formValue !== "object" || isEmpty(formValue) || Array.isArray(formValue) && formValue.every((val) => typeof val !== "object")) {
|
|
2972
2972
|
acc.push(path);
|
|
2973
2973
|
}
|
|
2974
2974
|
});
|
package/dist/index.esm.js
CHANGED
|
@@ -3314,7 +3314,7 @@ var Form = class extends Component5 {
|
|
|
3314
3314
|
} else if (key === NAME_KEY && _obj[key] !== "") {
|
|
3315
3315
|
paths.forEach((path) => {
|
|
3316
3316
|
const formValue = _get(formData, path);
|
|
3317
|
-
if (typeof formValue !== "object" || _isEmpty(formValue)) {
|
|
3317
|
+
if (typeof formValue !== "object" || _isEmpty(formValue) || Array.isArray(formValue) && formValue.every((val) => typeof val !== "object")) {
|
|
3318
3318
|
acc.push(path);
|
|
3319
3319
|
}
|
|
3320
3320
|
});
|