Skip to content

Commit

Permalink
Fix DescriptionField customization
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-pex committed Jun 10, 2022
1 parent 60ded05 commit 9da2475
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/components/fields/ArrayField.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ class ArrayField extends Component {
const title = schema.title || name;
let items = this.props.formData;
const { ArrayFieldTemplate, rootSchema, fields, formContext } = registry;
const { TitleField } = fields;
const { TitleField, DescriptionField } = fields;
const itemSchemas = schema.items.map((item, index) =>
retrieveSchema(item, rootSchema, formData[index])
);
Expand All @@ -712,6 +712,7 @@ class ArrayField extends Component {
const arrayProps = {
canAdd: this.canAddItem(items) && additionalSchema,
className: "field field-array field-array-fixed-items",
DescriptionField,
disabled,
idSchema,
formData,
Expand Down

0 comments on commit 9da2475

Please sign in to comment.