@syncfusion/ej2-navigations 23.1.44 → 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.
@@ -3169,12 +3169,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3169
3169
  var ul;
3170
3170
  var index;
3171
3171
  var navIdx;
3172
+ var item;
3172
3173
  for (var i = 0; i < items.length; i++) {
3173
3174
  navIdx = this.getIndex(items[i], isUniqueId);
3174
3175
  index = navIdx.pop();
3175
3176
  ul = this.getUlByNavIdx(navIdx.length);
3177
+ item = this.getItems(navIdx);
3176
3178
  if (ul) {
3177
- var validUl = isUniqueId ? ul.children[index].id : ul.children[index].textContent;
3179
+ var validUl = isUniqueId ? ul.children[index].id : item[index].text.toString();
3178
3180
  if (ishide && validUl === items[i]) {
3179
3181
  ul.children[index].classList.add(HIDE);
3180
3182
  }
@@ -5280,6 +5282,11 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5280
5282
  eleObj.appendTo(ele);
5281
5283
  }
5282
5284
  this.add(innerEle, CLS_TEMPLATE);
5285
+ var firstChild = innerEle.firstElementChild;
5286
+ if (!isNullOrUndefined(firstChild)) {
5287
+ firstChild.setAttribute('tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
5288
+ firstChild.setAttribute('data-tabindex', isNullOrUndefined(firstChild.getAttribute("tabIndex")) ? '-1' : this.getDataTabindex(firstChild));
5289
+ }
5283
5290
  this.tbarEle.push(innerEle);
5284
5291
  };
5285
5292
  Toolbar.prototype.buttonRendering = function (item, innerEle) {
@@ -5404,12 +5411,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5404
5411
  };
5405
5412
  Toolbar.prototype.activeEleRemove = function (curEle) {
5406
5413
  if (!isNullOrUndefined(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
- }
5414
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5413
5415
  }
5414
5416
  this.activeEle = curEle;
5415
5417
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5418,7 +5420,8 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5418
5420
  curEle.removeAttribute('tabindex');
5419
5421
  }
5420
5422
  else {
5421
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5423
+ var tabIndex = parseInt(this.getDataTabindex(this.activeEle)) + 1;
5424
+ this.activeEle.setAttribute('tabindex', tabIndex.toString());
5422
5425
  }
5423
5426
  }
5424
5427
  };
@@ -14615,7 +14618,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14615
14618
  this.isAnimate = false;
14616
14619
  this.isFieldChange = true;
14617
14620
  this.initialRender = true;
14618
- this.reRenderNodes();
14621
+ if (isNullOrUndefined(this.isReact) && !(this.fields.dataSource instanceof DataManager)) {
14622
+ this.reRenderNodes();
14623
+ }
14619
14624
  this.initialRender = false;
14620
14625
  this.isAnimate = true;
14621
14626
  this.isFieldChange = false;
@@ -15518,7 +15523,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
15518
15523
  };
15519
15524
  this.trigger('open', openArguments, function (observedopenArgs) {
15520
15525
  if (!observedopenArgs.cancel) {
15521
- removeClass([_this.element], VISIBILITY);
15526
+ removeClass([_this.element], [VISIBILITY, DISABLEANIMATION]);
15522
15527
  if (_this.element.classList.contains(OPEN)) {
15523
15528
  return;
15524
15529
  }