@syncfusion/ej2-navigations 31.2.5 → 31.2.12

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.
@@ -1212,6 +1212,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1212
1212
  _this.isTapHold = false;
1213
1213
  _this.tempItem = [];
1214
1214
  _this.showSubMenuOn = 'Auto';
1215
+ _this.isOpenCalled = false;
1215
1216
  _this.isAnimationNone = false;
1216
1217
  _this.isKBDAction = false;
1217
1218
  return _this;
@@ -2349,7 +2350,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2349
2350
  }
2350
2351
  }
2351
2352
  this.toggleVisiblity(ul, false);
2352
- if (this.isCMenu && this.enableScrolling && ul) {
2353
+ if ((this.isCMenu || this.isOpenCalled) && this.enableScrolling && ul) {
2353
2354
  ul.style.height = '';
2354
2355
  ul.style.top = '';
2355
2356
  ul.style.left = '';
@@ -7604,7 +7605,9 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
7604
7605
  * @returns {void}
7605
7606
  */
7606
7607
  ContextMenu.prototype.open = function (top, left, target) {
7608
+ this.isOpenCalled = true;
7607
7609
  _super.prototype.openMenu.call(this, null, null, top, left, null, target);
7610
+ this.isOpenCalled = false;
7608
7611
  };
7609
7612
  /**
7610
7613
  * Closes the ContextMenu if it is opened.