@syncfusion/ej2-navigations 28.2.3 → 28.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10325,7 +10325,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
10325
10325
  }
10326
10326
  initialize() {
10327
10327
  this.element.setAttribute('role', 'tree');
10328
- this.element.setAttribute('aria-activedescendant', this.element.id + '_active');
10328
+ if (!isNullOrUndefined(this.fields.dataSource) && Array.isArray(this.fields.dataSource) && this.fields.dataSource.length !== 0) {
10329
+ this.element.setAttribute('aria-activedescendant', this.element.id + '_active');
10330
+ }
10329
10331
  this.setCssClass(null, this.cssClass);
10330
10332
  this.setEnableRtl();
10331
10333
  this.setFullRow(this.fullRowSelect);