Light up refreshed combo boxes
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
&.empty {
|
||||
border-width: 3px;
|
||||
border-color: var(--color-grey-400);
|
||||
border-radius: var(--block-radius);
|
||||
border-radius: 0;
|
||||
background: var(--color-grey-300);
|
||||
min-height: 100px;
|
||||
border-style: dashed;
|
||||
|
||||
@@ -807,7 +807,7 @@ export default class ComfyApp {
|
||||
console.debug("[ComfyApp] Reconfiguring combo widget", backendNode.type, "=>", comboNode.type, rawValues.length)
|
||||
comboNode.doAutoConfig(comfyInput, { includeProperties: new Set(["values"]), setWidgetTitle: false })
|
||||
|
||||
comboNode.formatValues(rawValues as string[])
|
||||
comboNode.formatValues(rawValues as string[], true)
|
||||
if (!rawValues?.includes(get(comboNode.value))) {
|
||||
comboNode.setValue(rawValues[0])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user