1
0
Эх сурвалжийг харах

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

Co-authored-by: chenyuling <[email protected]>
boomboomchen 3 жил өмнө
parent
commit
9e9729a892

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

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