flowy-vue icon indicating copy to clipboard operation
flowy-vue copied to clipboard

Can't catch the target/destination node in beforeAdd

Open i-Chan93 opened this issue 1 year ago • 1 comments

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.

i-Chan93 avatar Sep 15 '22 11:09 i-Chan93

+1

sandeepsethu avatar Sep 15 '22 11:09 sandeepsethu