Skip to content

Commit

Permalink
Fix DescriptionField customization
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-pex authored Oct 28, 2021
1 parent 3daabab commit c6a29fd
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 @@ -640,7 +640,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 @@ -658,6 +658,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 c6a29fd

Please sign in to comment.