这是一个显示我的问题的小提琴。当您打开“文件夹A”和“文件夹B”时,将“B 项”拖出文件夹,将“A 项”拖入“B 文件夹”,就不能再正确拖动“B 项”了。
由于性能原因,我删除了折叠文件夹的子项。通常有超过 300 个项目,这使得树非常慢。
在我的真实程序中,我还在 dragEnd 回调函数的第一行收到一条错误消息:“TypeError:item is null”。这是功能:
function( item, dropItem, args, pos ){
var item_data = tree_map[ item.id ];
// here i do some stuff...
// only dropItem exists in the arguments
return false;
};
我怎样才能解决这个问题?