Commit f5a78658 authored by pythongosssss's avatar pythongosssss
Browse files

Fix double click on converted combo widget link

parent 04d9bc13
...@@ -159,9 +159,11 @@ app.registerExtension({ ...@@ -159,9 +159,11 @@ app.registerExtension({
const r = origOnInputDblClick ? origOnInputDblClick.apply(this, arguments) : undefined; const r = origOnInputDblClick ? origOnInputDblClick.apply(this, arguments) : undefined;
const input = this.inputs[slot]; const input = this.inputs[slot];
if (!input.widget || !input[ignoreDblClick])// Not a widget input or already handled input if (!input.widget || !input[ignoreDblClick]) {
{ // Not a widget input or already handled input
if (!(input.type in ComfyWidgets)) return r;//also Not a ComfyWidgets input (do nothing) if (!(input.type in ComfyWidgets) && !(input.widget.config?.[0] instanceof Array)) {
return r; //also Not a ComfyWidgets input or combo (do nothing)
}
} }
// Create a primitive node // Create a primitive node
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment