fix(selection): dont render selection when another node gets selected
This commit is contained in:
+2
-2
@@ -312,9 +312,9 @@ export const storeModel: StoreModel = {
|
||||
}),
|
||||
|
||||
unsetUserSelection: action((state) => {
|
||||
const selectedNodes = getNodesInside(state.nodes, state.userSelectionRect, state.transform);
|
||||
const selectedNodes = state.selectedElements?.filter(isNode);
|
||||
|
||||
if (!selectedNodes.length) {
|
||||
if (!selectedNodes) {
|
||||
state.selectionActive = false;
|
||||
state.userSelectionRect = { ...state.userSelectionRect, draw: false };
|
||||
state.nodesSelectionActive = false;
|
||||
|
||||
Reference in New Issue
Block a user