Skip to content

Commit

Permalink
Fix #6550: dropdown filter fix (#6551)
Browse files Browse the repository at this point in the history
* Fix #6550: dropdown filter fix

* Revert "Fix #6550: dropdown filter fix"

This reverts commit 1c45d79.

* Fix #6550: dropdown filter fix update

* Revert "Fix #6550: dropdown filter fix update"

This reverts commit e7b020e.

* Fix #6550: dropdown filter fix update
  • Loading branch information
Rekl0w committed May 2, 2024
1 parent db845e6 commit 7312fe4
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 7312fe4

Please sign in to comment.