Explorar el Código

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

hetech hace 7 años
padre
commit
d73821bc72
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;