提交 30cf210b 编写于 作者: J Joao Moreno

fixes #57274

上级 c9a0382f
......@@ -196,6 +196,12 @@ class FocusTrait<T> extends Trait<T> {
super.renderIndex(index, container);
container.setAttribute('role', 'treeitem');
container.setAttribute('id', this.getDomId(index));
if (this.contains(index)) {
container.setAttribute('aria-selected', 'true');
} else {
container.removeAttribute('aria-selected');
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册