소스 검색

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