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

Method getIndex does not exists #494

Open
projct1 opened this issue Oct 4, 2021 · 1 comment
Open

Method getIndex does not exists #494

projct1 opened this issue Oct 4, 2021 · 1 comment

Comments

@projct1
Copy link

projct1 commented Oct 4, 2021

https://skr.sh/sAMuWUw7pSj

onDrop: function(event, treeId, treeNodes, targetNode, moveType) {
    console.log(treeNodes[0].getIndex());
});

Got error Uncaught TypeError: treeNodes[0].getIndex is not a function

@zTree
Copy link
Owner

zTree commented Oct 24, 2021

please check the version of your zTree js file.

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