fix(editor): Open native context menu when editing Sticky (#8370)

This commit is contained in:
Elias Meire 2024-01-18 15:14:41 +01:00 committed by GitHub
parent c7c4ae4514
commit ade7d30053
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}
},
},