Skip to content

Commit

Permalink
fix: recursion lose prefixCls
Browse files Browse the repository at this point in the history
  • Loading branch information
coding-ice committed Aug 15, 2024
1 parent f3a6f12 commit f433194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/nodeUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ function convertItemsToNodes(
// Group
return (
<MergedMenuItemGroup key={mergedKey} {...restProps} title={label}>
{convertItemsToNodes(children, components)}
{convertItemsToNodes(children, components, prefixCls)}
</MergedMenuItemGroup>
);
}

// Sub Menu
return (
<MergedSubMenu key={mergedKey} {...restProps} title={label}>
{convertItemsToNodes(children, components)}
{convertItemsToNodes(children, components, prefixCls)}
</MergedSubMenu>
);
}
Expand Down

0 comments on commit f433194

Please sign in to comment.