Skip to content

Commit

Permalink
Fix #6518: fix optionLabel (#6520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekl0w authored May 1, 2024
1 parent 489c694 commit ff5d328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ export const Dropdown = React.memo(
};

const getOptionLabel = (option) => {
return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : option;
return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label');
};

const getOptionValue = (option) => {
Expand Down

0 comments on commit ff5d328

Please sign in to comment.