浏览代码

fix: [Tree] The event passed by handleNodeDragOver to calcDropRelativePosition is inappropriate #345 (#500)

Co-authored-by: chenyuling <[email protected]>
boomboomchen 3 年之前
父节点
当前提交
9e9729a892
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/semi-foundation/tree/foundation.ts

+ 1 - 1
packages/semi-foundation/tree/foundation.ts

@@ -783,7 +783,7 @@ export default class TreeFoundation extends BaseFoundation<TreeAdapter, BasicTre
 
         // Update the drag position
         if (dragNode && eventKey === dragOverNodeKey) {
-            const newPos = calcDropRelativePosition(event, treeNode);
+            const newPos = calcDropRelativePosition(e, treeNode);
             if (dropPosition === newPos) {
                 return;
             }