Skip to content

Commit

Permalink
fix: use additional condition to verify group header (#6572)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilCycle authored May 5, 2024
1 parent 91fe51e commit 6a990b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dropdown/DropdownPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const DropdownPanel = React.memo(

style = { ...style, ...option.style };

if (option.group && props.optionGroupLabel) {
if (option.group && option.optionGroup && props.optionGroupLabel) {
const { optionGroupLabel } = props;
const groupContent = props.optionGroupTemplate ? ObjectUtils.getJSXElement(props.optionGroupTemplate, option, index) : props.getOptionGroupLabel(option);
const key = index + '_' + props.getOptionGroupRenderKey(option);
Expand Down

0 comments on commit 6a990b3

Please sign in to comment.