8000 fix: fix tree drag drop bug · atinc/ngx-tethys@600e047 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 600e047

Browse files
committed
fix: fix tree drag drop bug
1 parent e6be89e commit 600e047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree/tree.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export class ThyTreeComponent implements ControlValueAccessor, OnInit, OnChanges
278278
targetParent.children.indexOf(event.item) + index
279279
);
280280
} else {
281-
this.treeNodes.splice(this.thyNodes.indexOf(event.item) + index, 0, event.previousItem);
281+
this.treeNodes.splice(this.treeNodes.indexOf(event.item) + index, 0, event.previousItem);
282282
}
283283
break;
284284
}

0 commit comments

Comments
 (0)
0