@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.
@@ -11487,11 +11487,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11487
11487
  if (!isNullOrUndefined(firstUl)) {
11488
11488
  firstUl.setAttribute('role', treeAriaAttr.treeRole);
11489
11489
  this.setMultiSelect(this.allowMultiSelection);
11490
- const firstNode = select('.' + LISTITEM, this.element);
11491
- if (firstNode) {
11492
- firstNode.setAttribute('tabindex', '0');
11493
- this.updateIdAttr(null, firstNode);
11494
- }
11490
+ this.setNodeFocusable();
11495
11491
  if (this.allowTextWrap) {
11496
11492
  this.updateWrap();
11497
11493
  }
@@ -15145,6 +15141,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
15145
15141
  }
15146
15142
  this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
15147
15143
  }
15144
+ this.setNodeFocusable();
15148
15145
  this.updateCheckedStateFromDS();
15149
15146
  if (this.showCheckBox && dropLi) {
15150
15147
  this.ensureParentCheckState(dropLi);
@@ -15541,6 +15538,13 @@ let TreeView = TreeView_1 = class TreeView extends Component {
15541
15538
  this.doCheckBoxAction(nodes, false);
15542
15539
  }
15543
15540
  }
15541
+ setNodeFocusable() {
15542
+ const firstNode = select('.' + LISTITEM, this.element);
15543
+ if (firstNode) {
15544
+ firstNode.setAttribute('tabindex', '0');
15545
+ this.updateIdAttr(null, firstNode);
15546
+ }
15547
+ }
15544
15548
  };
15545
15549
  __decorate$8([
15546
15550
  Property(false)