Fix:修复没有注册select插件时节点右键事件报错的问题

This commit is contained in:
wanglin2 2023-09-11 20:07:14 +08:00
parent ea95ae2b5d
commit b09d408ab3

View File

@ -466,7 +466,7 @@ class Node {
e.stopPropagation()
e.preventDefault()
// 如果是多选节点结束,那么不要触发右键菜单事件
if(!useLeftKeySelectionRightKeyDrag && this.mindMap.select.hasSelectRange()) {
if(this.mindMap.select && !useLeftKeySelectionRightKeyDrag && this.mindMap.select.hasSelectRange()) {
return
}
if (this.nodeData.data.isActive) {