@syncfusion/ej2-navigations 23.1.43 → 23.1.44

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.
@@ -5404,7 +5404,12 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5404
5404
  };
5405
5405
  Toolbar.prototype.activeEleRemove = function (curEle) {
5406
5406
  if (!isNullOrUndefined(this.activeEle)) {
5407
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5407
+ if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5408
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5409
+ }
5410
+ else {
5411
+ this.activeEle.removeAttribute('tabindex');
5412
+ }
5408
5413
  }
5409
5414
  this.activeEle = curEle;
5410
5415
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5412,7 +5417,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5412
5417
  this.updateTabIndex('-1');
5413
5418
  curEle.removeAttribute('tabindex');
5414
5419
  }
5415
- else if (curEle.parentElement.classList.contains(CLS_TEMPLATE) && !isNullOrUndefined(curEle.getAttribute('data-tabindex'))) {
5420
+ else {
5416
5421
  this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5417
5422
  }
5418
5423
  }