Skip to content

Commit

Permalink
Prevented Mantine colors dropdown from closing on click (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlipski authored Nov 13, 2024
1 parent ed7c03f commit 6024360
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/mantine/src/menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,13 @@ export const MenuItem = forwardRef<

if (subTrigger) {
return (
<div ref={ref} {...rest}>
<div
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
}}
ref={ref}
{...rest}>
{children}
<HiChevronRight size={15} />
</div>
Expand Down

0 comments on commit 6024360

Please sign in to comment.