@syncfusion/ej2-navigations 20.2.39 → 20.2.43

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.
@@ -1573,6 +1573,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1573
1573
  };
1574
1574
  MenuBase.prototype.cmenuHandler = function (e) {
1575
1575
  e.preventDefault();
1576
+ this.currentTarget = e.target;
1576
1577
  this.isCMenu = true;
1577
1578
  this.pageX = e.changedTouches ? e.changedTouches[0].pageX + 1 : e.pageX + 1;
1578
1579
  this.pageY = e.changedTouches ? e.changedTouches[0].pageY + 1 : e.pageY + 1;
@@ -2715,6 +2716,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2715
2716
  navIdx.length = 0;
2716
2717
  }
2717
2718
  }
2719
+ if (this_1.enableScrolling) {
2720
+ if (this_1.element.classList.contains('e-vertical')) {
2721
+ addScrolling(this_1.createElement, wrapper, this_1.element, 'vscroll', this_1.enableRtl);
2722
+ }
2723
+ else {
2724
+ addScrolling(this_1.createElement, wrapper, this_1.element, 'hscroll', this_1.enableRtl);
2725
+ }
2726
+ }
2718
2727
  break;
2719
2728
  }
2720
2729
  }
@@ -2877,12 +2886,16 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2877
2886
  ul.querySelector('.' + FOCUSED).focus();
2878
2887
  }
2879
2888
  else {
2880
- var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2881
- if (ele) {
2882
- ele.querySelector('.' + SELECTED).focus();
2883
- }
2884
- else {
2885
- this.element.focus();
2889
+ if (this.currentTarget) {
2890
+ if (!(this.currentTarget.classList.contains("e-numerictextbox") || this.currentTarget.classList.contains("e-textbox"))) {
2891
+ var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2892
+ if (ele) {
2893
+ ele.querySelector('.' + SELECTED).focus();
2894
+ }
2895
+ else {
2896
+ this.element.focus();
2897
+ }
2898
+ }
2886
2899
  }
2887
2900
  }
2888
2901
  }