4 Commits
Author SHA1 Message Date
Asa DeGroffandClaude Opus 4.6 4a9cd92618 Fix widget cleanup crash on new ComfyUI frontend
The populate() function set `this.widgets.length = 1` to preserve a
first widget, but the ShowText node has no initial widgets (its text
input uses forceInput), so this created an `undefined` entry at
index 0. The new ComfyUI frontend (comfyui-frontend-package >= 1.x)
iterates all widgets during layout (#arrangeWidgets) and crashes on the
undefined entry, causing the canvas to stop rendering entirely.

- Start cleanup loop at index 0 and clear to length 0
- Add safe-navigation when calling onRemove on potentially undefined widgets
- Fall back to w.element when w.inputEl is unavailable for
  forward-compatibility with the new frontend widget API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:52:03 -07:00
fairy-root 4a86742cf3 Updated the name of the node to Show Text. 2025-03-27 04:10:36 +01:00
fairy-root 183c491a99 Updated the whole functionality and fixed some bugs... 2025-02-28 03:14:40 +01:00
fairy-root 134e282522 Initial commit... 2025-02-24 00:25:32 +01:00