flowy-vue
flowy-vue copied to clipboard
Can't catch the target/destination node in beforeAdd
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.
+1