[fix] Preserve tooltips when promoting widgets to subgraph inputs (#1174)

This commit is contained in:
Christian Byrne
2025-07-29 23:53:19 -07:00
committed by GitHub
parent abf93d2c11
commit 381b5c7295
2 changed files with 110 additions and 1 deletions

View File

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