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

Tree.js 第557行有bug #519

Open
acelan86 opened this issue Oct 3, 2015 · 1 comment
Open

Tree.js 第557行有bug #519

acelan86 opened this issue Oct 3, 2015 · 1 comment

Comments

@acelan86
Copy link

acelan86 commented Oct 3, 2015

if (tree.selectedNodes[i] === node) {
      tree.selectedNodes.splice(i, 1);
}

这里对比两个obj有点不妥吧, 可能会存在节点被不小心修改后两个node不一定是同一个的问题,建议改成

if (tree.selectedNodes[i].id === node.id) {
    tree.selectedNodes.splice(i, 1);
}
@yankun01
Copy link
Contributor

目前开来后面的node是从nodeIndex里面来的。 好像暂时还没有遇到这个问题。

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