From d1c9422d096ad56c970d0c1145bd01714655a676 Mon Sep 17 00:00:00 2001 From: Elias Meire Date: Wed, 17 Jan 2024 17:03:57 +0100 Subject: [PATCH] Open native context menu when editing Sticky --- packages/editor-ui/src/components/Sticky.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/Sticky.vue b/packages/editor-ui/src/components/Sticky.vue index 1042548f15298..65664239885a1 100644 --- a/packages/editor-ui/src/components/Sticky.vue +++ b/packages/editor-ui/src/components/Sticky.vue @@ -328,8 +328,10 @@ export default defineComponent({ } }, onContextMenu(e: MouseEvent): void { - if (this.node) { + if (this.node && !this.isActive) { this.contextMenu.open(e, { source: 'node-right-click', node: this.node }); + } else { + e.stopPropagation(); } }, },