@syncfusion/ej2-navigations 27.1.51 → 27.1.52

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.
@@ -3193,6 +3193,8 @@ let MenuBase = class MenuBase extends Component {
3193
3193
  idx = navIdx.pop();
3194
3194
  iitems = this.getItems(navIdx);
3195
3195
  menuitem = new MenuItem(iitems[0], 'items', items[i], true);
3196
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3197
+ menuitem.parentObj = iitems[0].parentObj;
3196
3198
  iitems.splice(isAfter ? idx + 1 : idx, 0, menuitem);
3197
3199
  const uls = this.isMenu ? [this.getWrapper()].concat(this.getPopups()) : [].slice.call(this.getWrapper().children);
3198
3200
  if (!isNullOrUndefined(idx) && navIdx.length < uls.length) {
@@ -12563,7 +12565,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12563
12565
  const nextNode = isTowards ? this.getNextNode(li) : this.getPrevNode(li);
12564
12566
  this.setFocus(li, nextNode);
12565
12567
  this.navigateToFocus(!isTowards);
12566
- if (nextNode.classList.contains('e-disable') || nextNode.classList.contains('e-prevent')) {
12568
+ if (nextNode.classList.contains('e-disable')) {
12567
12569
  const lastChild = nextNode.lastChild;
12568
12570
  if (nextNode.previousSibling == null && nextNode.classList.contains('e-level-1')) {
12569
12571
  this.focusNextNode(nextNode, true);
@@ -12624,7 +12626,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12624
12626
  setFocus(preNode, nextNode) {
12625
12627
  removeClass([preNode], FOCUS);
12626
12628
  preNode.setAttribute('tabindex', '-1');
12627
- if (!nextNode.classList.contains('e-disable') && !nextNode.classList.contains(PREVENTSELECT)) {
12629
+ if (!nextNode.classList.contains('e-disable')) {
12628
12630
  addClass([nextNode], FOCUS);
12629
12631
  nextNode.setAttribute('tabindex', '0');
12630
12632
  nextNode.focus();
@@ -12643,7 +12645,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12643
12645
  focusIn() {
12644
12646
  if (!this.mouseDownStatus) {
12645
12647
  const focusedElement = this.getFocusedNode();
12646
- if (focusedElement.classList.contains('e-disable') || focusedElement.classList.contains('e-prevent')) {
12648
+ if (focusedElement.classList.contains('e-disable')) {
12647
12649
  focusedElement.setAttribute('tabindex', '-1');
12648
12650
  this.navigateNode(true);
12649
12651
  }