diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 571e36bad7..0b8743d615 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -3917,11 +3917,11 @@ export class LGraphCanvas implements ConnectionColorContext { } } - this.selectedItems.clear() this.selected_nodes = {} this.selectedItems.clear() this.current_node = null this.highlighted_links = {} + this.onSelectionChange?.(this.selected_nodes) this.setDirty(true) graph.afterChange() this.emitAfterChange()