diff --git a/packages/primeng/src/tree/tree.ts b/packages/primeng/src/tree/tree.ts index 4eab8f93cf..56d0287b8d 100755 --- a/packages/primeng/src/tree/tree.ts +++ b/packages/primeng/src/tree/tree.ts @@ -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()" > @@ -282,7 +283,6 @@ export class UITreeNode extends BaseComponent implements OnInit { onNodeClick(event: MouseEvent) { this.tree.onNodeClick(event, this.node); - event.preventDefault(); } onNodeKeydown(event: KeyboardEvent) {