We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hello.
I am trying to prevent nodes being dragged to the top of the tree.
I tried the following, but it doesn't work since targetInfo is undefined.
targetInfo
rootDroppable(stat) { return dragContext.targetInfo.indexBeforeDrop === 0; }
The text was updated successfully, but these errors were encountered:
targetInfo is not undefined untill mouseup, check #128, try dragContext.closestNode
Sorry, something went wrong.
I saw that issue and noticed dragContext.closestNode was also undefined. But I was still on 2.8.2. Upgrading to 2.9.4 fixed that.
I was able to prevent dragging to the top node by doing if (dragContext.closestNode === null) return false;.
if (dragContext.closestNode === null) return false;
Thanks!
No branches or pull requests
Hello.
I am trying to prevent nodes being dragged to the top of the tree.
I tried the following, but it doesn't work since
targetInfo
is undefined.The text was updated successfully, but these errors were encountered: