Skip to content

Commit

Permalink
Update tree.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 18, 2024
1 parent 663bd6c commit 7a2917b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo
level: level,
visible: visible && (parent ? parent.expanded : true),
lastChild: index === nodes.length - 1,
index: index,
index: index
};
(this.serializedValue as TreeNode<any>[]).push(<TreeNode>rowNode);

Expand Down Expand Up @@ -1642,7 +1642,7 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo
}
}

allowDrop(dragNode: TreeNode, dropNode: TreeNode<any> | null, dragNodeScope: any, dropPoint: 'node'|'between' = 'node'): boolean {
allowDrop(dragNode: TreeNode, dropNode: TreeNode<any> | null, dragNodeScope: any, dropPoint: 'node' | 'between' = 'node'): boolean {
if (!dragNode) {
//prevent random html elements to be dragged
return false;
Expand Down

0 comments on commit 7a2917b

Please sign in to comment.