@rjsf/core 6.4.1 → 6.4.2
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 +4 -2
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +2 -2
- package/lib/components/Form.js +1 -1
- package/lib/components/fields/ArrayField.d.ts.map +1 -1
- package/lib/components/fields/ArrayField.js +5 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/components/Form.tsx +1 -1
- package/src/components/fields/ArrayField.tsx +6 -2
package/dist/index.esm.js
CHANGED
|
@@ -141,7 +141,7 @@ function ArrayAsMultiSelect(props) {
|
|
|
141
141
|
} = props;
|
|
142
142
|
const { widgets: widgets2, schemaUtils, globalFormOptions, globalUiOptions } = registry;
|
|
143
143
|
const itemsSchema = schemaUtils.retrieveSchema(schema.items, items);
|
|
144
|
-
const itemsUiSchema = uiSchema?.items ??
|
|
144
|
+
const itemsUiSchema = uiSchema?.items ?? uiSchema;
|
|
145
145
|
const enumOptions = optionsList(itemsSchema, itemsUiSchema);
|
|
146
146
|
const { widget = "select", title: uiTitle, ...options } = getUiOptions(uiSchema, globalUiOptions);
|
|
147
147
|
const Widget = getWidget(schema, widget, widgets2);
|
|
@@ -474,6 +474,7 @@ function NormalArray(props) {
|
|
|
474
474
|
name: name && `${name}-${index}`,
|
|
475
475
|
registry,
|
|
476
476
|
uiOptions,
|
|
477
|
+
parentUiSchema: uiSchema,
|
|
477
478
|
hideError,
|
|
478
479
|
readonly,
|
|
479
480
|
disabled,
|
|
@@ -591,6 +592,7 @@ function FixedArray(props) {
|
|
|
591
592
|
name: name && `${name}-${index}`,
|
|
592
593
|
registry,
|
|
593
594
|
uiOptions,
|
|
595
|
+
parentUiSchema: uiSchema,
|
|
594
596
|
hideError,
|
|
595
597
|
readonly,
|
|
596
598
|
disabled,
|
|
@@ -4611,7 +4613,7 @@ var Form = class extends Component3 {
|
|
|
4611
4613
|
errors = merged.errors;
|
|
4612
4614
|
}
|
|
4613
4615
|
if (customErrors) {
|
|
4614
|
-
const merged = validationDataMerge(
|
|
4616
|
+
const merged = validationDataMerge({ errors, errorSchema }, customErrors.ErrorSchema, true);
|
|
4615
4617
|
errorSchema = merged.errorSchema;
|
|
4616
4618
|
errors = merged.errors;
|
|
4617
4619
|
}
|