@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.
@@ -3056,12 +3056,14 @@ let MenuBase = class MenuBase extends Component {
3056
3056
  let ul;
3057
3057
  let index;
3058
3058
  let navIdx;
3059
+ let item;
3059
3060
  for (let i = 0; i < items.length; i++) {
3060
3061
  navIdx = this.getIndex(items[i], isUniqueId);
3061
3062
  index = navIdx.pop();
3062
3063
  ul = this.getUlByNavIdx(navIdx.length);
3064
+ item = this.getItems(navIdx);
3063
3065
  if (ul) {
3064
- const validUl = isUniqueId ? ul.children[index].id : ul.children[index].textContent;
3066
+ const validUl = isUniqueId ? ul.children[index].id : item[index].text.toString();
3065
3067
  if (ishide && validUl === items[i]) {
3066
3068
  ul.children[index].classList.add(HIDE);
3067
3069
  }
@@ -5250,7 +5252,12 @@ let Toolbar = class Toolbar extends Component {
5250
5252
  }
5251
5253
  activeEleRemove(curEle) {
5252
5254
  if (!isNullOrUndefined(this.activeEle)) {
5253
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(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
+ }
5254
5261
  }
5255
5262
  this.activeEle = curEle;
5256
5263
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5258,7 +5265,7 @@ let Toolbar = class Toolbar extends Component {
5258
5265
  this.updateTabIndex('-1');
5259
5266
  curEle.removeAttribute('tabindex');
5260
5267
  }
5261
- else if (curEle.parentElement.classList.contains(CLS_TEMPLATE) && !isNullOrUndefined(curEle.getAttribute('data-tabindex'))) {
5268
+ else {
5262
5269
  this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5263
5270
  }
5264
5271
  }
@@ -14260,7 +14267,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
14260
14267
  this.isAnimate = false;
14261
14268
  this.isFieldChange = true;
14262
14269
  this.initialRender = true;
14263
- this.reRenderNodes();
14270
+ if (isNullOrUndefined(this.isReact) && !(this.fields.dataSource instanceof DataManager)) {
14271
+ this.reRenderNodes();
14272
+ }
14264
14273
  this.initialRender = false;
14265
14274
  this.isAnimate = true;
14266
14275
  this.isFieldChange = false;