Greetings from Syncfusion support.
Query-1: When I drop the node to the root (top-level) of the tree that properties (droppedNode/droppedNodeData) store the previous parent value.
Here while dropping a node to the top-level, the dragged node will add as Sibling. Hence it will consider the nearest li as its droppedNodeData.
For example, Consider this demo,
- Drag Brazil and drop it nearby Australia as the root node.
- Here the droppedNodedata will be Australia’s node data
This is the behavior of our control.
Query-2: How can I handle the dropping of the node to the root of the tree?
Can you please let us know the following details
- While dropping, what sort of operation have you done in your application?
Kindly share your code snippet or sample to replicate your issue. It would be more helpful to assist you better.