Skip to content

Commit 467a7c0

Browse files
authored
fix: the onClick property of MenuItem will be overridden by custom data (#651)
1 parent 784dc07 commit 467a7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/menu/menu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function MenuComp(props: React.PropsWithChildren<IMenuProps>, ref) {
103103
);
104104
}
105105
return (
106-
<MenuItem key={item.id} onClick={handleClick} {...item}>
106+
<MenuItem {...item} key={item.id} onClick={handleClick}>
107107
{item.name}
108108
</MenuItem>
109109
);

0 commit comments

Comments
 (0)