Light up refreshed combo boxes

This commit is contained in:
space-nuko
2023-05-16 21:08:43 -05:00
parent 9f1da40385
commit 0626baba2e
5 changed files with 21 additions and 28 deletions

View File

@@ -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;

View File

@@ -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])
}