From 37b74eb2c906761597102e869b53d91bca860f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boros=20Ma=CC=81te=CC=81?= <33902750+qwadrox@users.noreply.github.com> Date: Thu, 19 Dec 2024 21:24:07 +0100 Subject: [PATCH] #17132 replace prevent default --- packages/primeng/src/tree/tree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {