@syncfusion/ej2-navigations 23.2.4 → 23.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.
@@ -5128,6 +5128,11 @@ let Toolbar = class Toolbar extends Component {
5128
5128
  eleObj.appendTo(ele);
5129
5129
  }
5130
5130
  this.add(innerEle, CLS_TEMPLATE);
5131
+ const firstChild = innerEle.firstElementChild;
5132
+ if (!isNullOrUndefined(firstChild)) {
5133
+ firstChild.setAttribute('tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
5134
+ firstChild.setAttribute('data-tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
5135
+ }
5131
5136
  this.tbarEle.push(innerEle);
5132
5137
  }
5133
5138
  buttonRendering(item, innerEle) {
@@ -5252,12 +5257,7 @@ let Toolbar = class Toolbar extends Component {
5252
5257
  }
5253
5258
  activeEleRemove(curEle) {
5254
5259
  if (!isNullOrUndefined(this.activeEle)) {
5255
- if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5256
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5257
- }
5258
- else {
5259
- this.activeEle.removeAttribute('tabindex');
5260
- }
5260
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5261
5261
  }
5262
5262
  this.activeEle = curEle;
5263
5263
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5266,7 +5266,8 @@ let Toolbar = class Toolbar extends Component {
5266
5266
  curEle.removeAttribute('tabindex');
5267
5267
  }
5268
5268
  else {
5269
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5269
+ let tabIndex = parseInt(this.getDataTabindex(this.activeEle)) + 1;
5270
+ this.activeEle.setAttribute('tabindex', tabIndex.toString());
5270
5271
  }
5271
5272
  }
5272
5273
  }
@@ -15153,7 +15154,7 @@ let Sidebar = class Sidebar extends Component {
15153
15154
  };
15154
15155
  this.trigger('open', openArguments, (observedopenArgs) => {
15155
15156
  if (!observedopenArgs.cancel) {
15156
- removeClass([this.element], VISIBILITY);
15157
+ removeClass([this.element], [VISIBILITY, DISABLEANIMATION]);
15157
15158
  if (this.element.classList.contains(OPEN)) {
15158
15159
  return;
15159
15160
  }