Skip to content

Commit

Permalink
Open native context menu when editing Sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
elsmr committed Jan 17, 2024
1 parent 3912c5e commit d1c9422
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 d1c9422

Please sign in to comment.