Skip to content

Commit

Permalink
Merge pull request #1075 from MohamedAli00949/bb-793
Browse files Browse the repository at this point in the history
fix(BB-793): Improve the UX with the search field option entity
  • Loading branch information
MonkeyDo authored May 23, 2024
2 parents e6c2111 + f8de92e commit db17d48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/entity-editor/common/entity-search-field-option.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ class EntitySearchFieldOption extends React.Component {
if (!buttonAfter) {
return (
<>
{React.cloneElement(wrappedSelect, props)}
{React.cloneElement(wrappedSelect, wrappedSelect.props)}
{help && <Form.Text muted>{help}</Form.Text>}
</>
);
}

return (
<InputGroup>
{React.cloneElement(wrappedSelect, props)}
{React.cloneElement(wrappedSelect, wrappedSelect.props)}
{help && <Form.Text muted>{help}</Form.Text>}
<InputGroup.Append>{buttonAfter}</InputGroup.Append>
</InputGroup>
Expand Down Expand Up @@ -182,7 +182,7 @@ class EntitySearchFieldOption extends React.Component {
Option: LinkedEntitySelect,
SingleValue: EntitySelect,
...this.props.customComponents &&
this.props.customComponents
this.props.customComponents
}}
filterOptions={false}
getOptionLabel={this.getOptionLabel}
Expand Down

0 comments on commit db17d48

Please sign in to comment.