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 (#7216)
  • Loading branch information
iamkyrylo authored Sep 18, 2024
1 parent f040d81 commit e49e824
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 @@ -1024,7 +1024,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 e49e824

Please sign in to comment.