This commit is contained in:
Joao Moreno
2018-07-19 10:10:09 +02:00
parent afc3d77e7c
commit 96d06bd9e4
+1 -1
View File
@@ -220,7 +220,7 @@ export class ViewItem implements IViewItem {
this.element.removeAttribute('id');
}
if (this.model.hasChildren()) {
this.element.setAttribute('aria-expanded', String(!!this.model.isExpanded()));
this.element.setAttribute('aria-expanded', String(!!this._styles['expanded']));
} else {
this.element.removeAttribute('aria-expanded');
}