Skip to content

Commit

Permalink
fix(MultiSelect): remove optionLabel from check to fix getting input …
Browse files Browse the repository at this point in the history
…value
  • Loading branch information
iamkyrylo committed Sep 18, 2024
1 parent 6070e69 commit d75d2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ export const MultiSelect = React.memo(
};

const getInputValue = (value = []) => {
if (props.optionLabel && Array.isArray(value)) {
if (Array.isArray(value)) {
return value.map((val) => getLabelByValue(val)).join(', ');
}

Expand Down

0 comments on commit d75d2b1

Please sign in to comment.