From dd0c4d9b2e175cf39f1d731e0a84e97a7b770cfe Mon Sep 17 00:00:00 2001 From: rubz Date: Fri, 7 Aug 2026 11:07:54 +0200 Subject: [PATCH] fix: make CraftKit's custom-drawn JS widgets render correctly under Nodes 2.0 - Add js/shared/{nodes2,canvas_widgets,preset_picker_widget}.mjs: widgets registered with type "button" get hijacked by ComfyUI's Vue widget registry (Nodes 2.0), which renders a generic button showing the raw internal widget name instead of calling our draw(). Dividers/status boxes now use type "custom" via addCustomWidget, which correctly falls through to the legacy-canvas bridge in both renderers. The interactive preset-chip picker is dual-path: canvas+hit-testing in classic mode, real