We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 970049b commit 2e98bdcCopy full SHA for 2e98bdc
src/components/docImageClient.tsx
@@ -23,7 +23,8 @@ export function DocImageClient({
23
style,
24
className,
25
}: DocImageClientProps) {
26
- const handleContextMenu = (_e: React.MouseEvent) => {
+ const handleContextMenu = (e: React.MouseEvent) => {
27
+ e.preventDefault(); // Prevent default context menu
28
// Allow right-click to open in new tab
29
const link = document.createElement('a');
30
link.href = imgPath;
0 commit comments