Skip to content

Commit

Permalink
update: improve RJS form
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jul 29, 2024
1 parent d61f88b commit f20e5b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/other/rjsf/templates/ArrayFieldItemTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export default function ArrayFieldItemTemplate(props) {
(hasMoveUp || hasMoveDown) && (React.createElement(MoveUpButton, { style: btnStyle, disabled: disabled || readonly || !hasMoveUp, onClick: onReorderClick(index, index - 1), uiSchema: uiSchema, registry: registry })),
(hasMoveUp || hasMoveDown) && (React.createElement(MoveDownButton, { style: btnStyle, disabled: disabled || readonly || !hasMoveDown, onClick: onReorderClick(index, index + 1), uiSchema: uiSchema, registry: registry })),
hasCopy && (React.createElement(CopyButton, { style: btnStyle, disabled: disabled || readonly, onClick: onCopyIndexClick(index), uiSchema: uiSchema, registry: registry })),
hasRemove && (React.createElement(RemoveButton, { style: btnStyle, disabled: disabled || readonly, onClick: onDropIndexClick(index), uiSchema: uiSchema, registry: registry }))))));
hasRemove && (React.createElement(RemoveButton, { style: btnStyle, disabled: disabled || readonly, onClick: onDropIndexClick(index), uiSchema: uiSchema, registry: registry, className: "array-item-remove" }))))));
}
1 change: 1 addition & 0 deletions src/other/rjsf/templates/ArrayFieldItemTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default function ArrayFieldItemTemplate<
onClick={onDropIndexClick(index)}
uiSchema={uiSchema}
registry={registry}
className="array-item-remove"
/>
)}
</Grid>
Expand Down

0 comments on commit f20e5b9

Please sign in to comment.