@syncfusion/ej2-navigations 28.1.41 → 28.2.3

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.
@@ -11822,11 +11822,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11822
11822
  if (!isNullOrUndefined(firstUl)) {
11823
11823
  firstUl.setAttribute('role', treeAriaAttr.treeRole);
11824
11824
  this.setMultiSelect(this.allowMultiSelection);
11825
- var firstNode = select('.' + LISTITEM, this.element);
11826
- if (firstNode) {
11827
- firstNode.setAttribute('tabindex', '0');
11828
- this.updateIdAttr(null, firstNode);
11829
- }
11825
+ this.setNodeFocusable();
11830
11826
  if (this.allowTextWrap) {
11831
11827
  this.updateWrap();
11832
11828
  }
@@ -15521,6 +15517,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
15521
15517
  }
15522
15518
  this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
15523
15519
  }
15520
+ this.setNodeFocusable();
15524
15521
  this.updateCheckedStateFromDS();
15525
15522
  if (this.showCheckBox && dropLi) {
15526
15523
  this.ensureParentCheckState(dropLi);
@@ -15918,6 +15915,13 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
15918
15915
  this.doCheckBoxAction(nodes, false);
15919
15916
  }
15920
15917
  };
15918
+ TreeView.prototype.setNodeFocusable = function () {
15919
+ var firstNode = select('.' + LISTITEM, this.element);
15920
+ if (firstNode) {
15921
+ firstNode.setAttribute('tabindex', '0');
15922
+ this.updateIdAttr(null, firstNode);
15923
+ }
15924
+ };
15921
15925
  var TreeView_1;
15922
15926
  __decorate$8([
15923
15927
  Property(false)