Tree: fix tree node not deleted (#12684)

pull/12685/head
hetech 2018-09-10 11:45:37 +08:00 committed by GitHub
parent b7be905b1d
commit 3cf277c616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ export default class Node {
let targetNode = null;
for (let i = 0; i < this.childNodes.length; i++) {
if (this.childNodes[i] === data) {
if (this.childNodes[i].data === data) {
targetNode = this.childNodes[i];
break;
}