Skip to content

Commit f9d92b8

Browse files
authored
Fix native reroute chaining (#3989)
1 parent c4bbe7f commit f9d92b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/searchbox/NodeSearchBoxPopover.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,11 @@ const showContextMenu = (e: CanvasPointerEvent) => {
166166
showSearchBox(e)
167167
}
168168
}
169+
const afterRerouteId = firstLink.fromReroute?.id
169170
const connectionOptions =
170171
toType === 'input'
171-
? { nodeFrom: node, slotFrom: fromSlot }
172-
: { nodeTo: node, slotTo: fromSlot }
172+
? { nodeFrom: node, slotFrom: fromSlot, afterRerouteId }
173+
: { nodeTo: node, slotTo: fromSlot, afterRerouteId }
173174
174175
const canvas = canvasStore.getCanvas()
175176
const menu = canvas.showConnectionMenu({

0 commit comments

Comments
 (0)