Browse Source

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

hetech 7 years ago
parent
commit
d73821bc72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/tree/src/tree.vue

+ 1 - 1
packages/tree/src/tree.vue

@@ -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;