From ae03c814f2f145192800502ecad88ff5e04466b0 Mon Sep 17 00:00:00 2001 From: kheos31 <130769302+kheos31@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:37:57 +0100 Subject: [PATCH] Add data-id attribute on tree node element Issue https://github.com/primefaces/primeng/issues/15020 --- src/app/components/tree/tree.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index c188d975d87..50994d5e2eb 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -77,6 +77,7 @@ import { [attr.aria-posinset]="index + 1" [attr.aria-level]="level + 1" [attr.tabindex]="index === 0 ? 0 : -1" + [attr.data-id]="node.key" role="treeitem" (keydown)="onKeyDown($event)" >