@syncfusion/ej2-navigations 23.1.43 → 23.2.4

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
  }
@@ -5404,7 +5406,12 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5404
5406
  };
5405
5407
  Toolbar.prototype.activeEleRemove = function (curEle) {
5406
5408
  if (!isNullOrUndefined(this.activeEle)) {
5407
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5409
+ if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5410
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5411
+ }
5412
+ else {
5413
+ this.activeEle.removeAttribute('tabindex');
5414
+ }
5408
5415
  }
5409
5416
  this.activeEle = curEle;
5410
5417
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5412,7 +5419,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5412
5419
  this.updateTabIndex('-1');
5413
5420
  curEle.removeAttribute('tabindex');
5414
5421
  }
5415
- else if (curEle.parentElement.classList.contains(CLS_TEMPLATE) && !isNullOrUndefined(curEle.getAttribute('data-tabindex'))) {
5422
+ else {
5416
5423
  this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5417
5424
  }
5418
5425
  }
@@ -14610,7 +14617,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14610
14617
  this.isAnimate = false;
14611
14618
  this.isFieldChange = true;
14612
14619
  this.initialRender = true;
14613
- this.reRenderNodes();
14620
+ if (isNullOrUndefined(this.isReact) && !(this.fields.dataSource instanceof DataManager)) {
14621
+ this.reRenderNodes();
14622
+ }
14614
14623
  this.initialRender = false;
14615
14624
  this.isAnimate = true;
14616
14625
  this.isFieldChange = false;