@syncfusion/ej2-navigations 19.3.53 → 19.3.54

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.
@@ -7453,7 +7453,7 @@ let Tab = class Tab extends Component {
7453
7453
  }
7454
7454
  }
7455
7455
  parseObject(items, index) {
7456
- const tbCount = selectAll('.' + CLS_TB_ITEM, this.element).length;
7456
+ const tbCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
7457
7457
  const tItems = [];
7458
7458
  let txtWrapEle;
7459
7459
  const spliceArray = [];
@@ -8356,7 +8356,7 @@ let Tab = class Tab extends Component {
8356
8356
  const hdr = this.element.querySelectorAll('.' + CLS_TB_ITEM)[index];
8357
8357
  let itemIndex;
8358
8358
  if (hdr && !isNullOrUndefined(hdr.id) && hdr.id !== '') {
8359
- const num = (hdr.id.indexOf('_'));
8359
+ const num = (hdr.id.lastIndexOf('_'));
8360
8360
  itemIndex = parseInt(hdr.id.substring(num + 1), 10);
8361
8361
  }
8362
8362
  else {
@@ -8715,7 +8715,7 @@ let Tab = class Tab extends Component {
8715
8715
  this.reRenderItems();
8716
8716
  }
8717
8717
  else {
8718
- const itemsCount = selectAll('.' + CLS_TB_ITEM, this.element).length;
8718
+ const itemsCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
8719
8719
  if (itemsCount !== 0) {
8720
8720
  lastEleIndex = this.lastIndex + 1;
8721
8721
  }