mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(editor): Fix selection rectangle context menu on new canvas (#12584)
This commit is contained in:
parent
2110e9a051
commit
c8e3c5399e
|
@ -519,6 +519,13 @@ function onOpenContextMenu(event: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onOpenSelectionContextMenu({ event }: { event: MouseEvent }) {
|
||||||
|
contextMenu.open(event, {
|
||||||
|
source: 'canvas',
|
||||||
|
nodeIds: selectedNodeIds.value,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function onOpenNodeContextMenu(
|
function onOpenNodeContextMenu(
|
||||||
id: string,
|
id: string,
|
||||||
event: MouseEvent,
|
event: MouseEvent,
|
||||||
|
@ -692,6 +699,7 @@ provide(CanvasKey, {
|
||||||
@node-drag-stop="onNodeDragStop"
|
@node-drag-stop="onNodeDragStop"
|
||||||
@node-click="onNodeClick"
|
@node-click="onNodeClick"
|
||||||
@selection-drag-stop="onSelectionDragStop"
|
@selection-drag-stop="onSelectionDragStop"
|
||||||
|
@selection-context-menu="onOpenSelectionContextMenu"
|
||||||
@dragover="onDragOver"
|
@dragover="onDragOver"
|
||||||
@drop="onDrop"
|
@drop="onDrop"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue