Skip to content

Commit 559c04c

Browse files
committed
fix: Prevent Status menu hiding native menu (#2739,#3582)
1 parent a152500 commit 559c04c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Renderer/TaskLineRenderer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ export class TaskLineRenderer {
188188
});
189189

190190
checkbox.addEventListener('contextmenu', (ev: MouseEvent) => {
191+
ev.preventDefault(); // suppress the default click behavior
192+
ev.stopPropagation(); // suppress further event propagation
191193
const menu = new StatusMenu(StatusRegistry.getInstance(), task);
192194
menu.showAtPosition({ x: ev.clientX, y: ev.clientY });
193195
});

0 commit comments

Comments
 (0)