Commit 3cf277c6 authored by hetech's avatar hetech Committed by GitHub

Tree: fix tree node not deleted (#12684)

parent b7be905b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment