Skip to content

Commit

Permalink
fix(editor): Open native context menu when editing Sticky (#8370)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsmr authored and ivov committed Jan 22, 2024
1 parent 356812c commit e49e49f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor-ui/src/components/Sticky.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
},
},
Expand Down

0 comments on commit e49e49f

Please sign in to comment.