Skip to content

Commit

Permalink
fix(context-menu): stop propagation in trigger (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjedlicka authored Jan 11, 2024
1 parent 2b37c0c commit 347bc66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/context-menu/context-menu-trigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export function ContextMenuTrigger(props: ContextMenuTriggerProps) {
clearLongPressTimeout();

e.preventDefault();
e.stopPropagation();

context.setAnchorRect({ x: e.clientX, y: e.clientY });

Expand Down

0 comments on commit 347bc66

Please sign in to comment.