From c2c1621fd2961bdccae5de73ab9613e9c874cdbb Mon Sep 17 00:00:00 2001 From: DrJKL Date: Tue, 12 May 2026 01:45:56 -0700 Subject: [PATCH] refactor(LGraph): dispatch trigger events through events target Adds the four node trigger event payloads (property/slot-errors/ slot-links/slot-label) to LGraphEventMap and makes LGraph.trigger() dispatch via this.events in addition to calling onTrigger. Removes the leaky onTrigger monkey-patch in AppModeWidgetList.vue, replacing it with useEventListener on the events target. The onTrigger callback path is preserved for back-compat with useGraphNodeManager (see FE-667 for converting that one too). --- src/components/builder/AppModeWidgetList.vue | 16 ++++---------- src/lib/litegraph/src/LGraph.ts | 11 +++++----- .../src/infrastructure/LGraphEventMap.ts | 21 +++++++++++++++++++ 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/components/builder/AppModeWidgetList.vue b/src/components/builder/AppModeWidgetList.vue index ed8cb8de6a..ec60b254ec 100644 --- a/src/components/builder/AppModeWidgetList.vue +++ b/src/components/builder/AppModeWidgetList.vue @@ -1,6 +1,6 @@