Fix:修复拖拽节点时没有排除被拖拽节点的下级节点的问题

This commit is contained in:
wanglin2 2023-09-15 09:35:24 +08:00
parent e9de1e675f
commit c296b99d5a

View File

@ -226,7 +226,7 @@ class Drag extends Base {
if (node.nodeData.data.isActive) {
this.mindMap.renderer.setNodeActive(node, false)
}
if (node.uid === this.node.uid) {
if (node.uid === this.node.uid || this.node.isParent(node)) {
return
}
if (this.overlapNode || (this.prevNode && this.nextNode)) {