File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## 3.5.2
4
+
5
+ _ Apr 21, 2025_
6
+
7
+ ### Fixed
8
+
9
+ - Incorrect element detection for ` dropTarget ` class.
10
+
3
11
## 3.5.0
4
12
5
13
_ Jan 13, 2025_
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @minoru/react-dnd-treeview" ,
3
3
"description" : " A draggable / droppable React-based treeview component." ,
4
- "version" : " 3.5.0 " ,
4
+ "version" : " 3.5.2 " ,
5
5
"license" : " MIT" ,
6
6
"repository" : {
7
7
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ const getHoverPosition = <T>(
72
72
) : VerticalPosition => {
73
73
const bbox = el . getBoundingClientRect ( ) ;
74
74
const offsetY = context . dropTargetOffset ;
75
+
76
+ if ( offsetY === 0 ) {
77
+ return "middle" ;
78
+ }
79
+
75
80
const upSideY = bbox . top + offsetY ;
76
81
const lowerSideY = bbox . bottom - offsetY ;
77
82
You can’t perform that action at this time.
0 commit comments