chore(react): avoid deselection on pane click if elementsSelectable=false
This commit is contained in:
@@ -19,13 +19,13 @@ const selector = (s: ReactFlowState) => {
|
||||
const selectedEdges = [];
|
||||
|
||||
for (const [, node] of s.nodeLookup) {
|
||||
if (node.selected && (s.elementsSelectable || node.selectable)) {
|
||||
if (node.selected) {
|
||||
selectedNodes.push(node.internals.userNode);
|
||||
}
|
||||
}
|
||||
|
||||
for (const [, edge] of s.edgeLookup) {
|
||||
if (edge.selected && (s.elementsSelectable || edge.selectable)) {
|
||||
if (edge.selected) {
|
||||
selectedEdges.push(edge);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user