Comfy-Org / Comfy-Org/ComfyUI_frontend

Alt-drag of sub graph to copy breaks the original

Open
#12,446 2 comments 1 reaction 0 assignees View on GitHub
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
- [ ] I have custom nodes enabled

### What happened?

LiteGraph

If you duplicate a sub-graph by alt+drag, the original one breaks, you can no longer change the value.

To do the testing I ran `pnpm dev` and loaded `http://localhost:5173/`

### Steps to Reproduce

1. Create 2 utils/primitive Int node.
2. Connect the first one to the second one.
3. Make the first one a subgraph
4. Go in the subgraph and connect the input to the int node
5. Go to root, hold Alt then click and drag the subgraph
6. Notice, now the copied one is editable, but if you try to change the value of the original one, by using the arrow buttons or clicking the value and typing a number in the popup and clicking ok, it doesn't work. if you refresh or change workflows and back, it fixes itself. One time it crashed the page.

### How is this affecting you?

Crashes ComfyUI completely

### ComfyUI Frontend Version

1.46.0

### Browser

Chrome/Chromium

### Console Errors

```javascript

```

### Logs

```shell

```

### Additional Context

_No response_

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.