Skip to content

Commit

Permalink
Refactor #2011
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 6, 2021
1 parent 406efd5 commit bcbb37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ export class MultiSelect extends Component {
}

isOptionValueUsed(option) {
return !this.props.optionValue && option && option['value'] !== undefined;
return this.props.optionValue || (option && option['value'] !== undefined);
}

getVisibleOptions() {
Expand Down

0 comments on commit bcbb37b

Please sign in to comment.