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

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