Tree: fix TreeNode dragged to wrong position (#11797)

pull/8946/merge
hetech 2018-06-29 15:55:31 +08:00 committed by 杨奕
parent 1bf5580dc6
commit d73821bc72
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@
dropNext = false;
}
const targetPosition = dropNode.$el.querySelector('.el-tree-node__expand-icon').getBoundingClientRect();
const targetPosition = dropNode.$el.getBoundingClientRect();
const treePosition = this.$el.getBoundingClientRect();
let dropType;