@rjsf/core 5.14.3 → 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/index.js
CHANGED
|
@@ -3223,7 +3223,7 @@ var Form = class extends import_react17.Component {
|
|
|
3223
3223
|
} else if (key === import_utils39.NAME_KEY && _obj[key] !== "") {
|
|
3224
3224
|
paths.forEach((path) => {
|
|
3225
3225
|
const formValue = (0, import_get4.default)(formData, path);
|
|
3226
|
-
if (typeof formValue !== "object" || (0, import_isEmpty2.default)(formValue)) {
|
|
3226
|
+
if (typeof formValue !== "object" || (0, import_isEmpty2.default)(formValue) || Array.isArray(formValue) && formValue.every((val) => typeof val !== "object")) {
|
|
3227
3227
|
acc.push(path);
|
|
3228
3228
|
}
|
|
3229
3229
|
});
|