Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
i-Chan93 opened this issue Sep 15, 2022 · 1 comment
Open

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

i-Chan93 opened this issue Sep 15, 2022 · 1 comment

Comments

@i-Chan93
Copy link

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.

@sandeepsethu
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants