@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.
@@ -2894,9 +2894,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2894
2894
  ul.querySelector('.' + FOCUSED).focus();
2895
2895
  }
2896
2896
  else {
2897
+ var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2897
2898
  if (this.currentTarget) {
2898
- if (!(this.currentTarget.classList.contains("e-numerictextbox") || this.currentTarget.classList.contains("e-textbox"))) {
2899
- var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
2899
+ if (!(this.currentTarget.classList.contains("e-numerictextbox") || this.currentTarget.classList.contains("e-textbox") || this.currentTarget.tagName === 'INPUT')) {
2900
2900
  if (ele) {
2901
2901
  ele.querySelector('.' + SELECTED).focus();
2902
2902
  }
@@ -2905,6 +2905,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2905
2905
  }
2906
2906
  }
2907
2907
  }
2908
+ else {
2909
+ if (ele) {
2910
+ ele.querySelector('.' + SELECTED).focus();
2911
+ }
2912
+ else {
2913
+ this.element.focus();
2914
+ }
2915
+ }
2908
2916
  }
2909
2917
  }
2910
2918
  else {
@@ -9524,7 +9532,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9524
9532
  * @returns {void}
9525
9533
  */
9526
9534
  Tab.prototype.refreshActiveTab = function () {
9527
- if (this.isReact) {
9535
+ if (this.isReact && this.isTemplate) {
9528
9536
  this.clearTemplate();
9529
9537
  }
9530
9538
  if (!this.isTemplate) {