@syncfusion/ej2-navigations 21.1.37 → 21.1.38

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.
@@ -1646,7 +1646,9 @@ let MenuBase = class MenuBase extends Component {
1646
1646
  sli.classList.remove(SELECTED);
1647
1647
  if (observedCloseArgs.isFocused && liElem || this.keyType === 'left') {
1648
1648
  sli.classList.add(FOCUSED);
1649
- sli.focus();
1649
+ if (!e.target || !e.target.classList.contains('e-edit-template')) {
1650
+ sli.focus();
1651
+ }
1650
1652
  }
1651
1653
  }
1652
1654
  if (!isOpen && this.hamburgerMode && liElem && liElem.getAttribute('aria-expanded') === 'false' &&
@@ -8994,16 +8996,16 @@ let Tab = class Tab extends Component {
8994
8996
  this.clearTemplate(['content'], templateToClear);
8995
8997
  }
8996
8998
  }
8997
- else if (portal) {
8998
- for (var i = 0; i < portal.length; i++) {
8999
- var portalItem = portal[i];
9000
- var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM$2);
9001
- if (!isNullOrUndefined(portalItem) && closestItem === cntTrg) {
9002
- this.clearTemplate(['content'], i);
9003
- break;
9004
- }
9005
- }
9006
- }
8999
+ /* else if (portal) {
9000
+ for (var i = 0; i < portal.length; i++) {
9001
+ var portalItem = portal[i];
9002
+ var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
9003
+ if (!isNullOrUndefined(portalItem) && closestItem === cntTrg) {
9004
+ this.clearTemplate(['content'], i);
9005
+ break;
9006
+ }
9007
+ }
9008
+ } */
9007
9009
  detach(cntTrg);
9008
9010
  }
9009
9011
  this.trigger('removed', tabRemovingArgs);
@@ -16577,13 +16579,9 @@ let Carousel = class Carousel extends Component {
16577
16579
  append(template, indicatorBar);
16578
16580
  }
16579
16581
  else {
16580
- const indicator = this.createElement('button', { className: CLS_INDICATOR$1, attrs: { 'type': 'button' } });
16582
+ const indicator = this.createElement('button', { className: CLS_INDICATOR$1, attrs: { 'type': 'button', 'aria-label': this.localeObj.getConstant('slide') + ' ' + (index + 1) + ' ' + this.localeObj.getConstant('of') + ' ' + this.slideItems.length } });
16581
16583
  indicatorBar.appendChild(indicator);
16582
- indicator.appendChild(this.createElement('div', {
16583
- attrs: {
16584
- 'aria-label': this.localeObj.getConstant('slide') + ' ' + (index + 1) + ' ' + this.localeObj.getConstant('of') + ' ' + this.slideItems.length
16585
- }
16586
- }));
16584
+ indicator.appendChild(this.createElement('div', {}));
16587
16585
  const buttonObj = new Button({ cssClass: 'e-flat e-small' });
16588
16586
  buttonObj.appendTo(indicator);
16589
16587
  }