@syncfusion/ej2-navigations 20.2.36 → 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.
@@ -1496,6 +1496,7 @@ let MenuBase = class MenuBase extends Component {
1496
1496
  }
1497
1497
  cmenuHandler(e) {
1498
1498
  e.preventDefault();
1499
+ this.currentTarget = e.target;
1499
1500
  this.isCMenu = true;
1500
1501
  this.pageX = e.changedTouches ? e.changedTouches[0].pageX + 1 : e.pageX + 1;
1501
1502
  this.pageY = e.changedTouches ? e.changedTouches[0].pageY + 1 : e.pageY + 1;
@@ -2617,6 +2618,14 @@ let MenuBase = class MenuBase extends Component {
2617
2618
  navIdx.length = 0;
2618
2619
  }
2619
2620
  }
2621
+ if (this.enableScrolling) {
2622
+ if (this.element.classList.contains('e-vertical')) {
2623
+ addScrolling(this.createElement, wrapper, this.element, 'vscroll', this.enableRtl);
2624
+ }
2625
+ else {
2626
+ addScrolling(this.createElement, wrapper, this.element, 'hscroll', this.enableRtl);
2627
+ }
2628
+ }
2620
2629
  break;
2621
2630
  }
2622
2631
  }
@@ -2770,12 +2779,16 @@ let MenuBase = class MenuBase extends Component {
2770
2779
  ul.querySelector('.' + FOCUSED).focus();
2771
2780
  }
2772
2781
  else {
2773
- const ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2774
- if (ele) {
2775
- ele.querySelector('.' + SELECTED).focus();
2776
- }
2777
- else {
2778
- this.element.focus();
2782
+ if (this.currentTarget) {
2783
+ if (!(this.currentTarget.classList.contains("e-numerictextbox") || this.currentTarget.classList.contains("e-textbox"))) {
2784
+ const ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2785
+ if (ele) {
2786
+ ele.querySelector('.' + SELECTED).focus();
2787
+ }
2788
+ else {
2789
+ this.element.focus();
2790
+ }
2791
+ }
2779
2792
  }
2780
2793
  }
2781
2794
  }
@@ -8740,7 +8753,7 @@ let Tab = class Tab extends Component {
8740
8753
  }
8741
8754
  }
8742
8755
  else {
8743
- this.dragItem.parentNode.insertBefore(dropItem, this.dragItem);
8756
+ this.dragItem.parentNode.insertBefore(this.dragItem, dropItem.nextElementSibling);
8744
8757
  }
8745
8758
  }
8746
8759
  }
@@ -8917,8 +8930,9 @@ let Tab = class Tab extends Component {
8917
8930
  if (this.allowDragAndDrop && (index !== Array.prototype.indexOf.call(this.itemIndexArray, trg.id))) {
8918
8931
  index = Array.prototype.indexOf.call(this.itemIndexArray, trg.id);
8919
8932
  }
8920
- this.items.splice(index, 1);
8921
- this.itemIndexArray.splice(index, 1);
8933
+ const targetEleIndex = this.itemIndexArray.indexOf(trg.id);
8934
+ this.items.splice(targetEleIndex, 1);
8935
+ this.itemIndexArray.splice(targetEleIndex, 1);
8922
8936
  this.refreshActiveBorder();
8923
8937
  const cntTrg = select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.extIndex(trg.id), select('.' + CLS_CONTENT$1, this.element));
8924
8938
  if (!isNullOrUndefined(cntTrg)) {
@@ -15892,7 +15906,7 @@ const CLS_TEMPLATE$2 = 'e-template';
15892
15906
  const CLS_SLIDE_ANIMATION = 'e-carousel-slide-animation';
15893
15907
  const CLS_FADE_ANIMATION = 'e-carousel-fade-animation';
15894
15908
  const CLS_CUSTOM_ANIMATION = 'e-carousel-custom-animation';
15895
- const CLS_ANIMATION_NONE = "e-carousel-animation-none";
15909
+ const CLS_ANIMATION_NONE = 'e-carousel-animation-none';
15896
15910
  const CLS_PREV_SLIDE = 'e-prev';
15897
15911
  const CLS_NEXT_SLIDE = 'e-next';
15898
15912
  const CLS_TRANSITION_START = 'e-transition-start';