@syncfusion/ej2-navigations 20.2.48 → 20.2.49

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.
@@ -2995,7 +2995,9 @@ let MenuBase = class MenuBase extends Component {
2995
2995
  navIdx = this.getIndex(items[i], isUniqueId);
2996
2996
  idx = navIdx.pop();
2997
2997
  iitems = this.getItems(navIdx);
2998
- this.removeItem(iitems, navIdx, idx);
2998
+ if (!isNullOrUndefined(idx)) {
2999
+ this.removeItem(iitems, navIdx, idx);
3000
+ }
2999
3001
  }
3000
3002
  }
3001
3003
  /**