mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: fix tree node not deleted (#12684)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user