@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.
@@ -8493,9 +8493,6 @@ let Tab = class Tab extends Component {
8493
8493
  }
8494
8494
  }
8495
8495
  }
8496
- if (this.prevIndex !== this.selectedItem) {
8497
- ele.classList.remove(CLS_ACTIVE$1);
8498
- }
8499
8496
  }
8500
8497
  loadContentElement() {
8501
8498
  if (!this.isTemplate) {
@@ -8559,6 +8556,9 @@ let Tab = class Tab extends Component {
8559
8556
  this.getContent(ele, this.items[0].content, 'render', 0);
8560
8557
  }
8561
8558
  this.loadContentInitMode(ele);
8559
+ if (this.prevIndex !== this.selectedItem) {
8560
+ ele.classList.remove(CLS_ACTIVE$1);
8561
+ }
8562
8562
  }
8563
8563
  setStyleAttribute(this.cntEle, { 'height': this.maxHeight + 'px' });
8564
8564
  }
@@ -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);
@@ -11907,6 +11909,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11907
11909
  ul.style.visibility = '';
11908
11910
  }
11909
11911
  animateHeight(args, start, end) {
11912
+ if (isNullOrUndefined(args.element.parentElement)) {
11913
+ return;
11914
+ }
11910
11915
  const remaining = (args.duration - args.timeStamp) / args.duration;
11911
11916
  const currentHeight = (end - start) * remaining + start;
11912
11917
  args.element.parentElement.style.height = currentHeight + 'px';
@@ -14956,9 +14961,11 @@ let TreeView = TreeView_1 = class TreeView extends Component {
14956
14961
  this.updateWrap();
14957
14962
  break;
14958
14963
  case 'checkedNodes':
14959
- if (this.showCheckBox) {
14960
- this.checkedNodes = oldProp.checkedNodes;
14961
- this.setCheckedNodes(newProp.checkedNodes);
14964
+ if (JSON.stringify(oldProp.checkedNodes) !== JSON.stringify(newProp.checkedNodes)) {
14965
+ if (this.showCheckBox) {
14966
+ this.checkedNodes = oldProp.checkedNodes;
14967
+ this.setCheckedNodes(newProp.checkedNodes);
14968
+ }
14962
14969
  }
14963
14970
  break;
14964
14971
  case 'autoCheck':