From 936f95783eacbce6ef78e5795c00ad105478296f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 5 Sep 2023 10:23:50 +0300 Subject: [PATCH] Fixed #4368 - TreeTable: aria-expanded attribute should not be on leaf nodes --- components/lib/treetable/TreeTableRow.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/treetable/TreeTableRow.vue b/components/lib/treetable/TreeTableRow.vue index 41a9ce0ee..d3dd669be 100755 --- a/components/lib/treetable/TreeTableRow.vue +++ b/components/lib/treetable/TreeTableRow.vue @@ -5,7 +5,7 @@ :style="node.style" :tabindex="tabindex" role="row" - :aria-expanded="expanded" + :aria-expanded="node.children && node.children.length ? expanded : undefined" :aria-level="level + 1" :aria-setsize="ariaSetSize" :aria-posinset="ariaPosInset"