Skip to content

Commit

Permalink
added itemToString for Dropdown component
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Gokhale <[email protected]>
  • Loading branch information
nmgokhale committed Oct 24, 2024
1 parent 80a02f5 commit a2b9f8e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ class DropDown extends React.Component {
disabled={this.props.state === STATES.DISABLED || this.disableEmptyListDropdown}
type="default"
items={dropDown.options}
itemToString={(item) => (item ? item.label : "")}
itemToElement={this.renderItem}
renderSelectedItem={this.renderItem}
onChange={this.handleChange}
Expand Down

0 comments on commit a2b9f8e

Please sign in to comment.