diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index a450434e39..2e924cb860 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -508,7 +508,7 @@ const handleContextMenu = e => { target = target.parentNode } - while (!target.className.includes('editor')) { + while (!target.className.includes('editor-main')) { left += target.offsetLeft top += target.offsetTop target = target.parentNode diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index 099675987d..93b1ddc04d 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -393,7 +393,7 @@ eventBus.on('handleNew', handleNew) @mouseup="deselectCurComponent" >