Преглед изворни кода

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