mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 04:00:31 +00:00
Disconnect moved output links when dropped on canvas (#936)
- Resolves #884
This commit is contained in:
@@ -446,6 +446,12 @@ export class LinkConnector {
|
||||
link.inputNode.disconnectInput(link.inputIndex, true)
|
||||
}
|
||||
}
|
||||
} else if (this.state.connectingTo === "output") {
|
||||
for (const link of this.renderLinks) {
|
||||
if (link instanceof MovingOutputLink) {
|
||||
link.outputNode.disconnectOutput(link.outputIndex, link.inputNode)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user