Skip to content

Commit

Permalink
fix(primeng/p-treeNode): double click on chevron makes subtree to be …
Browse files Browse the repository at this point in the history
…selected

Fixes primefaces#12347.
  • Loading branch information
volvachev authored and Egor Volvachev committed Dec 19, 2022
1 parent 1679de7 commit c446501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ export class UITreeNode implements OnInit {
toggle(event: Event) {
if (this.node.expanded) this.collapse(event);
else this.expand(event);

event.stopPropagation();
}

expand(event: Event) {
Expand Down

0 comments on commit c446501

Please sign in to comment.