zTree / zTree_v3

jQuery Tree Plugin
MIT License
4.1k stars 1.28k forks source link

Method getIndex does not exists #494

Open projct1 opened 2 years ago

projct1 commented 2 years ago

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 commented 2 years ago

please check the version of your zTree js file.