Skip to content

Can't catch the target/destination node in beforeAdd #62

@i-Chan93

Description

@i-Chan93
beforeAdd({ to, from }) {
      // from is null when we're not dragging from the current node tree
      console.log('beforeAdd', to, from);
 }

Here, from returns undefined and to returns the node object that's currently being dragged. But in the method, there's no way to get the information of the destination node to which the currently dragged node is going to be attached. Kindly help in understanding if there's a way to achieve the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions