fix(nodes): dont select nodes when selectable=false closes #1324

This commit is contained in:
moklick
2021-07-20 17:59:04 +02:00
parent 08bbfc7616
commit 41db69e06c
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ export default function reactFlowReducer(state = initialState, action: ReactFlow
height: Math.abs(mousePos.y - startY),
};
const selectedNodes = getNodesInside(state.nodes, nextUserSelectRect, state.transform);
const selectedNodes = getNodesInside(state.nodes, nextUserSelectRect, state.transform, false, true);
const selectedEdges = getConnectedEdges(selectedNodes, state.edges);
const nextSelectedElements = [...selectedNodes, ...selectedEdges];