Skip to content

Commit

Permalink
fix: prevent right cilck on content menu (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
huanfe1 authored Nov 9, 2024
1 parent 4beb1c8 commit ca6428f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/renderer/src/providers/context-menu-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Handler = () => {
return (
<ContextMenu onOpenChange={handleOpenChange}>
<ContextMenuTrigger className="hidden" ref={ref} />
<ContextMenuContent>
<ContextMenuContent onContextMenu={(e) => e.preventDefault()}>
{contextMenuState.open &&
contextMenuState.menuItems.map((item, index) => <Item key={index} item={item} />)}
</ContextMenuContent>
Expand Down

0 comments on commit ca6428f

Please sign in to comment.