rete
rete copied to clipboard
Unselecting node
Hello,
What is the best way to unselect a node without having to select another node?
I would like to click on the canvas and unselect the last selected node. Currently, you can only unselect a node by selecting another node. Thus, you can never have all nodes unselected after one is selected.
Thanks, Marcelo
You can register a click event (Documentation) on the editor and clear the list of selected nodes within it like so
editor.on(["click"], () => { editor.selected.list = [] });
Not sure if there is a better way to do it but this works for me.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.