@syncfusion/ej2-navigations 19.4.52 → 19.4.56

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.
@@ -1655,7 +1655,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1655
1655
  if (isOpen && _this.hamburgerMode && ulIndex && !(submenus.length)) {
1656
1656
  _this.afterCloseMenu(e);
1657
1657
  }
1658
- else if (isOpen && !_this.hamburgerMode && _this.navIdx.length && closedLi && !trgtLi) {
1658
+ else if (isOpen && !_this.hamburgerMode && _this.navIdx.length && closedLi && !trgtLi && _this.keyType !== "left") {
1659
1659
  var ele = (e && e.target.classList.contains('e-vscroll'))
1660
1660
  ? closest(e.target, '.e-menu-wrapper') : null;
1661
1661
  if (ele) {
@@ -1693,7 +1693,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1693
1693
  if (sli_1) {
1694
1694
  sli_1.setAttribute('aria-expanded', 'false');
1695
1695
  sli_1.classList.remove(SELECTED);
1696
- if (observedCloseArgs.isFocused && liElem_1) {
1696
+ if (observedCloseArgs.isFocused && liElem_1 || _this.keyType === "left") {
1697
1697
  sli_1.classList.add(FOCUSED);
1698
1698
  sli_1.focus();
1699
1699
  }
@@ -6075,7 +6075,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6075
6075
  var header = this.createElement('div', { className: CLS_HEADER, id: getUniqueID('acrdn_header') });
6076
6076
  var items = this.getItems();
6077
6077
  var ariaAttr = {
6078
- 'tabindex': '0', 'role': 'heading', 'aria-selected': 'false', 'aria-label': 'collapsed',
6078
+ 'tabindex': '0', 'role': 'heading', 'aria-label': 'collapsed',
6079
6079
  'aria-disabled': 'false', 'aria-level': items.length.toString()
6080
6080
  };
6081
6081
  attributes(header, ariaAttr);
@@ -6329,7 +6329,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6329
6329
  this.add(trgtItemEle, CLS_ACTIVE);
6330
6330
  trgt.setAttribute('aria-hidden', 'false');
6331
6331
  attributes(trgtItemEle, { 'aria-expanded': 'true' });
6332
- attributes(trgt.previousElementSibling, { 'aria-selected': 'true', 'aria-label': 'expanded' });
6332
+ attributes(trgt.previousElementSibling, { 'aria-label': 'expanded' });
6333
6333
  icon.classList.remove(CLS_TOGANIMATE);
6334
6334
  this.trigger('expanded', eventArgs);
6335
6335
  }
@@ -6446,7 +6446,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6446
6446
  this.remove(trgtItemEle, CLS_ACTIVE);
6447
6447
  trgt.setAttribute('aria-hidden', 'true');
6448
6448
  attributes(trgtItemEle, { 'aria-expanded': 'false' });
6449
- attributes(trgt.previousElementSibling, { 'aria-selected': 'false', 'aria-label': 'collapsed' });
6449
+ attributes(trgt.previousElementSibling, { 'aria-label': 'collapsed' });
6450
6450
  this.trigger('expanded', eventArgs);
6451
6451
  }
6452
6452
  };
@@ -14775,6 +14775,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
14775
14775
  }
14776
14776
  if (this.isOpen) {
14777
14777
  this.show();
14778
+ this.firstRender = true;
14778
14779
  }
14779
14780
  else {
14780
14781
  this.setMediaQuery();
@@ -14885,9 +14886,10 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
14885
14886
  };
14886
14887
  Sidebar.prototype.transitionEnd = function (e) {
14887
14888
  this.setDock();
14888
- if (!isNullOrUndefined(e)) {
14889
+ if (!isNullOrUndefined(e) && !this.firstRender) {
14889
14890
  this.triggerChange();
14890
14891
  }
14892
+ this.firstRender = false;
14891
14893
  EventHandler.remove(this.element, 'transitionend', this.transitionEnd);
14892
14894
  };
14893
14895
  Sidebar.prototype.destroyBackDrop = function () {