@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.
@@ -10649,7 +10649,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10649
10649
  };
10650
10650
  TreeView.prototype.initialize = function () {
10651
10651
  this.element.setAttribute('role', 'tree');
10652
- this.element.setAttribute('aria-activedescendant', this.element.id + '_active');
10652
+ if (!isNullOrUndefined(this.fields.dataSource) && Array.isArray(this.fields.dataSource) && this.fields.dataSource.length !== 0) {
10653
+ this.element.setAttribute('aria-activedescendant', this.element.id + '_active');
10654
+ }
10653
10655
  this.setCssClass(null, this.cssClass);
10654
10656
  this.setEnableRtl();
10655
10657
  this.setFullRow(this.fullRowSelect);