Skip to content

Commit

Permalink
primefaces#17132 replace prevent default
Browse files Browse the repository at this point in the history
  • Loading branch information
qwadrox committed Dec 19, 2024
1 parent d861ae3 commit 37b74eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primeng/src/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ import {
[variant]="tree?.config.inputStyle() === 'filled' ? 'filled' : 'outlined' || tree?.config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
[attr.data-p-partialchecked]="node.partialSelected"
[tabindex]="-1"
(click)="$event.preventDefault()"
>
<ng-container *ngIf="tree.checkboxIconTemplate || tree._checkboxIconTemplate">
<ng-template #icon>
Expand Down Expand Up @@ -282,7 +283,6 @@ export class UITreeNode extends BaseComponent implements OnInit {

onNodeClick(event: MouseEvent) {
this.tree.onNodeClick(event, <TreeNode>this.node);
event.preventDefault();
}

onNodeKeydown(event: KeyboardEvent) {
Expand Down

0 comments on commit 37b74eb

Please sign in to comment.