Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
a4049989
Commit
a4049989
authored
Apr 15, 2023
by
comfyanonymous
Browse files
Merge branch 'fix-combo-auto-primitive' of
https://github.com/pythongosssss/ComfyUI
parents
deb2b93e
f5a78658
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
web/extensions/core/widgetInputs.js
web/extensions/core/widgetInputs.js
+5
-3
No files found.
web/extensions/core/widgetInputs.js
View file @
a4049989
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment