@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.
@@ -5250,7 +5250,12 @@ let Toolbar = class Toolbar extends Component {
5250
5250
  }
5251
5251
  activeEleRemove(curEle) {
5252
5252
  if (!isNullOrUndefined(this.activeEle)) {
5253
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5253
+ if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5254
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5255
+ }
5256
+ else {
5257
+ this.activeEle.removeAttribute('tabindex');
5258
+ }
5254
5259
  }
5255
5260
  this.activeEle = curEle;
5256
5261
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5258,7 +5263,7 @@ let Toolbar = class Toolbar extends Component {
5258
5263
  this.updateTabIndex('-1');
5259
5264
  curEle.removeAttribute('tabindex');
5260
5265
  }
5261
- else if (curEle.parentElement.classList.contains(CLS_TEMPLATE) && !isNullOrUndefined(curEle.getAttribute('data-tabindex'))) {
5266
+ else {
5262
5267
  this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5263
5268
  }
5264
5269
  }