Skip to content

Commit

Permalink
fix: the onClick property of MenuItem will be overridden by custom da…
Browse files Browse the repository at this point in the history
…ta (#651)
  • Loading branch information
kiwiwong authored Feb 15, 2022
1 parent 784dc07 commit 467a7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function MenuComp(props: React.PropsWithChildren<IMenuProps>, ref) {
);
}
return (
<MenuItem key={item.id} onClick={handleClick} {...item}>
<MenuItem {...item} key={item.id} onClick={handleClick}>
{item.name}
</MenuItem>
);
Expand Down

0 comments on commit 467a7c0

Please sign in to comment.