Skip to content

Commit

Permalink
Fix #6550: dropdown filter fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekl0w committed May 2, 2024
1 parent 48e71a1 commit e7b020e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/lib/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,10 @@ export const Dropdown = React.memo(
if (option) {
return option;
} else if (groupIndex > 0) {
return findPrevOption({ group: groupIndex - 1, option: getOptionGroupChildren(visibleOptions[groupIndex - 1]).length });
return findPrevOption({
group: groupIndex - 1,
option: getOptionGroupChildren(visibleOptions[groupIndex - 1]).length
});
}

return null;
Expand Down Expand Up @@ -887,7 +890,7 @@ export const Dropdown = React.memo(
};

const getOptionValue = (option) => {
return props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : option;
return props.optionValue ? ObjectUtils.resolveFieldData(option, props.optionValue) : ObjectUtils.resolveFieldData(option, 'value') || option;
};

const getOptionRenderKey = (option) => {
Expand Down

0 comments on commit e7b020e

Please sign in to comment.