Fix widget/input conversion on text widgets (#1129)

* Support converting dynamically created text widgets to input

* Fix array contains

* Add test wait

* Try to fix test only failing in CI

* Fix test: Disable conversion option nesting in contextmenu
This commit is contained in:
bymyself
2024-10-07 08:22:28 -07:00
committed by GitHub
parent a95a6f9b47
commit 9cbfc9856b
3 changed files with 62 additions and 11 deletions

View File

@@ -6,7 +6,15 @@ import type { INodeInputSlot, IWidget } from '@comfyorg/litegraph'
import type { InputSpec } from '@/types/apiTypes'
const CONVERTED_TYPE = 'converted-widget'
const VALID_TYPES = ['STRING', 'combo', 'number', 'toggle', 'BOOLEAN']
const VALID_TYPES = [
'STRING',
'combo',
'number',
'toggle',
'BOOLEAN',
'text',
'string'
]
const CONFIG = Symbol()
const GET_CONFIG = Symbol()
const TARGET = Symbol() // Used for reroutes to specify the real target widget