Skip to content

Commit 5f8781e

Browse files
committed
fix(form): sync reorder & delete button order for simple and collapsible array items
1 parent 8938b9e commit 5f8781e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/form/templates/array-field-simple-item.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ export class SimpleItemTemplate extends React.Component<SimpleItemProps> {
3434
className: 'limel-form-array-item--simple',
3535
},
3636
this.props.item.children,
37-
this.props.allowItemRemoval ? this.renderRemoveButton(item) : null,
37+
this.props.allowItemReorder
38+
? this.renderMoveDownButton(item)
39+
: null,
3840
this.props.allowItemReorder ? this.renderMoveUpButton(item) : null,
39-
this.props.allowItemReorder ? this.renderMoveDownButton(item) : null
41+
this.props.allowItemRemoval ? this.renderRemoveButton(item) : null
4042
);
4143
}
4244

0 commit comments

Comments
 (0)