[backport core/1.33] When moving subgraphInput link, properly disconnect old link (#7255)

Backport of #7229 to `core/1.33`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7255-backport-core-1-33-When-moving-subgraphInput-link-properly-disconnect-old-link-2c46d73d365081cda606e81ec4cbfeec)
by [Unito](https://www.unito.io)

Co-authored-by: AustinMroz <austin@comfy.org>
This commit is contained in:
Comfy Org PR Bot
2025-12-09 09:55:22 +09:00
committed by GitHub
parent c814db1861
commit 195d779035
2 changed files with 59 additions and 9 deletions

View File

@@ -63,6 +63,9 @@ export class ToInputFromIoNodeLink implements RenderLink {
if (existingLink) {
// Moving an existing link
const { input, inputNode } = existingLink.resolve(this.network)
if (inputNode && input)
this.node._disconnectNodeInput(inputNode, input, existingLink)
events.dispatch('input-moved', this)
} else {
// Creating a new link