@syncfusion/ej2-navigations 20.3.49 → 20.3.52

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.
@@ -2787,9 +2787,9 @@ let MenuBase = class MenuBase extends Component {
2787
2787
  ul.querySelector('.' + FOCUSED).focus();
2788
2788
  }
2789
2789
  else {
2790
+ const ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2790
2791
  if (this.currentTarget) {
2791
- if (!(this.currentTarget.classList.contains("e-numerictextbox") || this.currentTarget.classList.contains("e-textbox"))) {
2792
- const ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2792
+ if (!(this.currentTarget.classList.contains("e-numerictextbox") || this.currentTarget.classList.contains("e-textbox") || this.currentTarget.tagName === 'INPUT')) {
2793
2793
  if (ele) {
2794
2794
  ele.querySelector('.' + SELECTED).focus();
2795
2795
  }
@@ -2798,6 +2798,14 @@ let MenuBase = class MenuBase extends Component {
2798
2798
  }
2799
2799
  }
2800
2800
  }
2801
+ else {
2802
+ if (ele) {
2803
+ ele.querySelector('.' + SELECTED).focus();
2804
+ }
2805
+ else {
2806
+ this.element.focus();
2807
+ }
2808
+ }
2801
2809
  }
2802
2810
  }
2803
2811
  else {
@@ -9238,7 +9246,7 @@ let Tab = class Tab extends Component {
9238
9246
  * @returns {void}
9239
9247
  */
9240
9248
  refreshActiveTab() {
9241
- if (this.isReact) {
9249
+ if (this.isReact && this.isTemplate) {
9242
9250
  this.clearTemplate();
9243
9251
  }
9244
9252
  if (!this.isTemplate) {