diff --git a/simple-mind-map/src/AssociativeLine.js b/simple-mind-map/src/AssociativeLine.js index c03c3a5c..0d58fc0c 100644 --- a/simple-mind-map/src/AssociativeLine.js +++ b/simple-mind-map/src/AssociativeLine.js @@ -184,12 +184,12 @@ class AssociativeLine { checkOverlapNode(x, y) { this.overlapNode = null bfsWalk(this.mindMap.renderer.root, node => { - if (node === this.creatingStartNode || this.overlapNode) { - return - } if (node.nodeData.data.isActive) { this.mindMap.renderer.setNodeActive(node, false) } + if (node === this.creatingStartNode || this.overlapNode) { + return + } let { left, top, width, height } = node let right = left + width let bottom = top + height