Skip to content

Commit

Permalink
fix: make AddButton not show an empty label
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienLeMagicien committed Sep 23, 2022
1 parent b444702 commit d76dc58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ should change the heading of the (upcoming) version to include a major version b
## @rjsf/semantic-ui
- Updated the `FieldErrorTemplate` to use the `children` variation of the `List.Item` that supports ReactElement
- Pass `uiSchema` appropriately to all of the `IconButton`s, `ArrayFieldItemTemplate` and `WrapIfAdditional` components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)
- Fixed `ArrayFieldTemplate` and `ObjectFieldTemplate`'s `AddButton` to show the non-labeled version. (https://github.com/rjsf-team/react-jsonschema-form/pull/3142)

## @rjsf/utils
- Updated the `FieldErrorProps` type to make it support an array of string and ReactElement
Expand Down
2 changes: 1 addition & 1 deletion packages/semantic-ui/src/AddButton/AddButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button, Icon } from "semantic-ui-react";

function AddButton({ uiSchema, ...props }) {
return (
<Button title="Add Item" {...props} icon size="tiny" labelPosition="left">
<Button title="Add Item" {...props} icon size="tiny">
<Icon name="plus" />
</Button>
);
Expand Down

0 comments on commit d76dc58

Please sign in to comment.