mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复拖拽节点时没有排除被拖拽节点的下级节点的问题
This commit is contained in:
parent
e9de1e675f
commit
c296b99d5a
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user