Skip to content

Commit e146b48

Browse files
committed
fix: menuItem custom icon lose custom class, close #5390
1 parent e9ba9fe commit e146b48

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

components/menu/src/MenuItem.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,13 @@ export default defineComponent({
233233
onFocus={onInternalFocus}
234234
title={typeof title === 'string' ? title : undefined}
235235
>
236-
{cloneElement(icon, {
237-
class: `${prefixCls.value}-item-icon`,
238-
})}
236+
{cloneElement(
237+
icon,
238+
{
239+
class: `${prefixCls.value}-item-icon`,
240+
},
241+
false,
242+
)}
239243
{renderItemChildren(icon, children)}
240244
</Overflow.Item>
241245
</Tooltip>

0 commit comments

Comments
 (0)