@syncfusion/ej2-navigations 28.2.3 → 28.2.5

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.
@@ -8769,9 +8769,6 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8769
8769
  }
8770
8770
  }
8771
8771
  }
8772
- if (this.prevIndex !== this.selectedItem) {
8773
- ele.classList.remove(CLS_ACTIVE$1);
8774
- }
8775
8772
  };
8776
8773
  Tab.prototype.loadContentElement = function () {
8777
8774
  if (!this.isTemplate) {
@@ -8835,6 +8832,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8835
8832
  this.getContent(ele, this.items[0].content, 'render', 0);
8836
8833
  }
8837
8834
  this.loadContentInitMode(ele);
8835
+ if (this.prevIndex !== this.selectedItem) {
8836
+ ele.classList.remove(CLS_ACTIVE$1);
8837
+ }
8838
8838
  }
8839
8839
  setStyleAttribute(this.cntEle, { 'height': this.maxHeight + 'px' });
8840
8840
  }
@@ -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);
@@ -12248,6 +12250,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12248
12250
  ul.style.visibility = '';
12249
12251
  };
12250
12252
  TreeView.prototype.animateHeight = function (args, start, end) {
12253
+ if (isNullOrUndefined(args.element.parentElement)) {
12254
+ return;
12255
+ }
12251
12256
  var remaining = (args.duration - args.timeStamp) / args.duration;
12252
12257
  var currentHeight = (end - start) * remaining + start;
12253
12258
  args.element.parentElement.style.height = currentHeight + 'px';
@@ -15332,9 +15337,11 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
15332
15337
  this.updateWrap();
15333
15338
  break;
15334
15339
  case 'checkedNodes':
15335
- if (this.showCheckBox) {
15336
- this.checkedNodes = oldProp.checkedNodes;
15337
- this.setCheckedNodes(newProp.checkedNodes);
15340
+ if (JSON.stringify(oldProp.checkedNodes) !== JSON.stringify(newProp.checkedNodes)) {
15341
+ if (this.showCheckBox) {
15342
+ this.checkedNodes = oldProp.checkedNodes;
15343
+ this.setCheckedNodes(newProp.checkedNodes);
15344
+ }
15338
15345
  }
15339
15346
  break;
15340
15347
  case 'autoCheck':