Comfy-Org / Comfy-Org/ComfyUI_frontend

In unknown situation connecting to an input of a node (subgraph in my case) connects graphically to the upper-left corner of the widget.

Open
#10,320 3 comments 2 reactions 0 assignees View on GitHub
area:links area:subgraph Potential Bug
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Prerequisites

- [x] I am running the latest version of ComfyUI
- [x] I have custom nodes enabled

### What happened?

The connections to a subgraph go wild every time I connect an input.

Image

### Steps to Reproduce

1. I created a subgraph from existing basic nodes (only creation of strings from strings and int). 3 inputs, 3 outputs. Nothing fancy. Only one subgraph in the full workspace. No hierarchy of subgraphs.

2. When going back to the upper level, the input of the subgraph are behaving weird:
I connect a primitive string node to an input of the subgraph and boom: the connection link goes instead to the upper-left corner of the subgraph widget. There is no way to connect anything else to the other inputs (it is like if there is no input snapping at all on any input of the subgraph widget).

-------------------- Additional investigations follows -------------------
3. Close ComfyUI desktop, restart it. The connection is there. The snapping is possible.

4. Connect another source to an input of the subgraph widget -> now two connection are ending on the top-left corner of the subgraph widget!

5. Repeat steps 3 and 4, on we are now at three connections going to the top-left corner.

Note: the node is working fine

6. I add a "Preview as Text" node in the top-level graph -> the view is still problematic.

7. I copy-past that "Preview as Text" node -" the review comes back correct.

8. As soon as I do a connection to the subgraph widget, the display goes problematic.

9. I have duplicated the subgraph and added a connection to one of its inputs ->problem appears.

10. Now the copy-paste trick does not work for any of the two subgraphs.

11. but going inside one subgraph and coming back to the upper graph solves the display of both widget inputs.

### How is this affecting you?

Visual/UI issue only

### ComfyUI Frontend Version

1.41.21

### Browser

Other

### Console Errors

```javascript
No error in the console
```

### Logs

```shell

```

### Additional Context

ComfyUI Desktop on Windows 11. Installed yesterday in a new folder.

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-10320-In-unknown-situation-connecting-to-an-input-of-a-node-subgraph-in-my-case-connects--3286d73d365081c2b1d2f28f8ff8ed10) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.