From 48867364389149fc3a70c842ec0b788642f41ee5 Mon Sep 17 00:00:00 2001 From: jmfrancois Date: Tue, 24 Oct 2023 10:12:22 +0200 Subject: [PATCH] feat: backport --- .../UIForm/fieldsets/Array/Array.component.js | 1 + .../CollapsibleFieldset.component.js | 32 +++++++++++-------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/packages/forms/src/UIForm/fieldsets/Array/Array.component.js b/packages/forms/src/UIForm/fieldsets/Array/Array.component.js index 74895faf08c..ba7595f29c2 100644 --- a/packages/forms/src/UIForm/fieldsets/Array/Array.component.js +++ b/packages/forms/src/UIForm/fieldsets/Array/Array.component.js @@ -124,6 +124,7 @@ export default class ArrayWidget extends Component { ({ - ...action, - displayMode: CollapsiblePanel.displayModes.TYPE_ACTION, - })); return (
{schema.description ? ( ( - + {items.map((itemSchema, idx) => ( + ))}
@@ -132,6 +135,7 @@ export default function createCollapsibleFieldset(title = defaultTitle) { if (process.env.NODE_ENV !== 'production') { CollapsibleFieldset.propTypes = { id: PropTypes.string, + index: PropTypes.number, onChange: PropTypes.func.isRequired, schema: PropTypes.shape({ items: PropTypes.array.isRequired,