mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-22 15:29:44 +00:00
[fix] Preserve tooltips when promoting widgets to subgraph inputs (#1174)
This commit is contained in:
@@ -216,6 +216,13 @@ export class SubgraphNode extends LGraphNode implements BaseLGraph {
|
||||
set label(value) {
|
||||
console.warn("Promoted widget: setting label is not allowed", this, value)
|
||||
},
|
||||
get tooltip() {
|
||||
// Preserve the original widget's tooltip for promoted widgets
|
||||
return widget.tooltip
|
||||
},
|
||||
set tooltip(value) {
|
||||
console.warn("Promoted widget: setting tooltip is not allowed", this, value)
|
||||
},
|
||||
})
|
||||
|
||||
this.widgets.push(promotedWidget)
|
||||
|
||||
Reference in New Issue
Block a user