react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

onMove receives inconsistent parentId and index

Open davidnaas opened this issue 1 year ago • 9 comments
trafficstars

Inconsistent index Cursor would imply new index should be 1 but is reported as 2 Kapture 2024-04-23 at 12 23 49

Inconsistent parentId Cursor and node.willReceiveDrop indicates that a drop will NOT happen, yet parentId is that of the Box rather than Container

This behaviour only happens after first moving Slider into a Box, then out again. Somehow that Slider continues to receive the Box as the parent when being moved. It should also be noted that those boxes are internal nodes in all cases, i.e. children is always an array Kapture 2024-04-23 at 12 21 57

davidnaas avatar Apr 23 '24 10:04 davidnaas