Fix collapsed node textarea causes UI inconsistency (#2267)

This commit is contained in:
filtered
2025-01-17 03:50:53 +11:00
committed by GitHub
parent edd58cd153
commit 79fee6ac72
3 changed files with 70 additions and 0 deletions

View File

@@ -417,6 +417,12 @@ LGraphNode.prototype.addDOMWidget = function <
element.dataset.collapsed = this.flags?.collapsed ? 'true' : 'false'
}
const { onConfigure } = this
this.onConfigure = function () {
onConfigure?.apply(this, arguments)
element.dataset.collapsed = this.flags?.collapsed ? 'true' : 'false'
}
const onRemoved = this.onRemoved
this.onRemoved = function () {
element.remove()