Trigger onSelectionChange on deleteSelected (#539)

This commit is contained in:
Chenlei Hu
2025-02-17 17:22:32 -05:00
committed by GitHub
parent 8c6979223d
commit 9288709497

View File

@@ -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()