Skip to content

Alt-drag of sub graph to copy breaks the original #12446

@phazei

Description

@phazei

Prerequisites

  • 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

Logs

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions