@jsonforms/material-renderers 3.2.0-alpha.1 → 3.2.0-alpha.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.
|
@@ -696,8 +696,11 @@ var materialEnumArrayRendererTester = core.rankWith(5, core.and(core.uiTypeIs('C
|
|
|
696
696
|
return core.hasType(schema, 'array') &&
|
|
697
697
|
!Array.isArray(schema.items) &&
|
|
698
698
|
schema.uniqueItems === true;
|
|
699
|
-
}), core.schemaSubPathMatches('items', function (schema) {
|
|
700
|
-
|
|
699
|
+
}), core.schemaSubPathMatches('items', function (schema, rootSchema) {
|
|
700
|
+
var resolvedSchema = schema.$ref
|
|
701
|
+
? core.resolveSchema(rootSchema, schema.$ref, rootSchema)
|
|
702
|
+
: schema;
|
|
703
|
+
return hasOneOfItems(resolvedSchema) || hasEnumItems(resolvedSchema);
|
|
701
704
|
}))));
|
|
702
705
|
var MaterialEnumArrayRenderer$1 = react.withJsonFormsMultiEnumProps(MaterialEnumArrayRenderer);
|
|
703
706
|
|