Skip to content

Commit

Permalink
Add data-id attribute on tree node element
Browse files Browse the repository at this point in the history
  • Loading branch information
kheos31 authored Mar 12, 2024
1 parent 3019f89 commit ae03c81
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 ae03c81

Please sign in to comment.