mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Trigger onSelectionChange on deleteSelected (#539)
This commit is contained in:
@@ -3917,11 +3917,11 @@ export class LGraphCanvas implements ConnectionColorContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.selectedItems.clear()
|
|
||||||
this.selected_nodes = {}
|
this.selected_nodes = {}
|
||||||
this.selectedItems.clear()
|
this.selectedItems.clear()
|
||||||
this.current_node = null
|
this.current_node = null
|
||||||
this.highlighted_links = {}
|
this.highlighted_links = {}
|
||||||
|
this.onSelectionChange?.(this.selected_nodes)
|
||||||
this.setDirty(true)
|
this.setDirty(true)
|
||||||
graph.afterChange()
|
graph.afterChange()
|
||||||
this.emitAfterChange()
|
this.emitAfterChange()
|
||||||
|
|||||||
Reference in New Issue
Block a user