Skip to content

Commit cf54ba2

Browse files
dante01yoonclaude
authored andcommitted
fix: restore widget.inputEl backward compatibility for custom nodes (#9759)
## Summary Restores `widget.inputEl` assignment on STRING multiline widgets that was removed in commit a7c2115 (PR #8594) when it was renamed to `widget.element`. Custom nodes (e.g. comfyui-custom-scripts) rely on `widget.inputEl` to call `addEventListener` or set `readOnly`. - Fixes Comfy-Org/ComfyUI#12893 ## Test plan - Verify custom nodes that access `widget.inputEl` on STRING widgets work correctly - Verify `widget.element` still works as before Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1d05f08 commit cf54ba2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function addMultilineWidget(
4040
})
4141

4242
widget.element = inputEl
43+
widget.inputEl = inputEl
4344
widget.options.minNodeSize = [400, 200]
4445

4546
inputEl.addEventListener('input', (event) => {

0 commit comments

Comments
 (0)