Skip to content

Commit a404998

Browse files
Merge branch 'fix-combo-auto-primitive' of https://github.com/pythongosssss/ComfyUI
2 parents deb2b93 + f5a7865 commit a404998

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web/extensions/core/widgetInputs.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ app.registerExtension({
159159
const r = origOnInputDblClick ? origOnInputDblClick.apply(this, arguments) : undefined;
160160

161161
const input = this.inputs[slot];
162-
if (!input.widget || !input[ignoreDblClick])// Not a widget input or already handled input
163-
{
164-
if (!(input.type in ComfyWidgets)) return r;//also Not a ComfyWidgets input (do nothing)
162+
if (!input.widget || !input[ignoreDblClick]) {
163+
// Not a widget input or already handled input
164+
if (!(input.type in ComfyWidgets) && !(input.widget.config?.[0] instanceof Array)) {
165+
return r; //also Not a ComfyWidgets input or combo (do nothing)
166+
}
165167
}
166168

167169
// Create a primitive node

0 commit comments

Comments
 (0)