@syncfusion/ej2-navigations 20.2.38 → 20.2.44

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
  }
@@ -9018,7 +9031,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9018
9031
  }
9019
9032
  }
9020
9033
  else {
9021
- this.dragItem.parentNode.insertBefore(dropItem, this.dragItem);
9034
+ this.dragItem.parentNode.insertBefore(this.dragItem, dropItem.nextElementSibling);
9022
9035
  }
9023
9036
  }
9024
9037
  };
@@ -9199,8 +9212,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9199
9212
  if (_this.allowDragAndDrop && (index !== Array.prototype.indexOf.call(_this.itemIndexArray, trg.id))) {
9200
9213
  index = Array.prototype.indexOf.call(_this.itemIndexArray, trg.id);
9201
9214
  }
9202
- _this.items.splice(index, 1);
9203
9215
  var targetEleIndex = _this.itemIndexArray.indexOf(trg.id);
9216
+ _this.items.splice(targetEleIndex, 1);
9204
9217
  _this.itemIndexArray.splice(targetEleIndex, 1);
9205
9218
  _this.refreshActiveBorder();
9206
9219
  var cntTrg = select('#' + CLS_CONTENT$1 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT$1, _this.element));
@@ -10463,6 +10476,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10463
10476
  }
10464
10477
  }
10465
10478
  }
10479
+ this.parentCheckData = [];
10466
10480
  };
10467
10481
  TreeView.prototype.beforeNodeCreate = function (e) {
10468
10482
  if (this.showCheckBox) {