Browse Source

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

Co-authored-by: chenyuling <[email protected]>
boomboomchen 3 years ago
parent
commit
9e9729a892
1 changed files with 1 additions and 1 deletions
  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;
             }