Skip to content

Commit

Permalink
Merge pull request #15021 from kheos31/issue/15020/tree-node-data-id-…
Browse files Browse the repository at this point in the history
…attribute

Add data-id attribute on tree node element
  • Loading branch information
cetincakiroglu authored Mar 14, 2024
2 parents 63b9241 + ae03c81 commit 7eb0c78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
>
Expand Down

0 comments on commit 7eb0c78

Please sign in to comment.