@syncfusion/ej2-navigations 23.1.39 → 23.1.41

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.
@@ -1707,7 +1707,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1707
1707
  _this.afterCloseMenu(e);
1708
1708
  }
1709
1709
  else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {
1710
- var ele = (e && e.target.classList.contains('e-vscroll'))
1710
+ var ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
1711
1711
  ? closest(e.target, '.e-menu-wrapper') : null;
1712
1712
  if (ele) {
1713
1713
  ele = ele.querySelector('.e-menu-item');
@@ -1716,7 +1716,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1716
1716
  }
1717
1717
  }
1718
1718
  else {
1719
- _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
1719
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
1720
+ _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
1721
+ }
1720
1722
  }
1721
1723
  }
1722
1724
  else if (isOpen && !isIterated && !ulIndex && ((_this.hamburgerMode && _this.navIdx.length) ||
@@ -2489,6 +2491,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2489
2491
  if (!cli.classList.contains(SEPARATOR)) {
2490
2492
  this.showSubMenu = true;
2491
2493
  var cul = cli.parentNode;
2494
+ if (isNullOrUndefined(cul)) {
2495
+ return;
2496
+ }
2492
2497
  this.cliIdx = this.getIdx(cul, cli);
2493
2498
  if (this.isMenu || !Browser.isDevice) {
2494
2499
  var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -2724,7 +2729,12 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2724
2729
  }
2725
2730
  break;
2726
2731
  case 'enableRtl':
2727
- wrapper.classList.toggle(RTL);
2732
+ if (this_1.enableRtl) {
2733
+ wrapper.classList.add(RTL);
2734
+ }
2735
+ else {
2736
+ wrapper.classList.remove(RTL);
2737
+ }
2728
2738
  break;
2729
2739
  case 'showItemOnClick':
2730
2740
  this_1.unWireEvents();
@@ -5315,7 +5325,8 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5315
5325
  var dom;
5316
5326
  var innerEle = this.createElement('div', { className: CLS_ITEM });
5317
5327
  var tempDom = this.createElement('div', {
5318
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5328
+ innerHTML: this.enableHtmlSanitizer && !isNullOrUndefined(item.tooltipText) ?
5329
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5319
5330
  });
5320
5331
  if (!this.tbarEle) {
5321
5332
  this.tbarEle = [];
@@ -6390,9 +6401,11 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6390
6401
  if (typeof (value) === 'string') {
6391
6402
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
6392
6403
  }
6393
- else if (!isNullOrUndefined(this.trgtEle) && (value instanceof (HTMLElement))) {
6404
+ else if (value instanceof (HTMLElement)) {
6394
6405
  ele.appendChild(value);
6395
- ele.firstElementChild.style.display = '';
6406
+ if (this.trgtEle) {
6407
+ ele.firstElementChild.style.display = '';
6408
+ }
6396
6409
  }
6397
6410
  else {
6398
6411
  templateFn = compile(value);
@@ -14805,9 +14818,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
14805
14818
  }
14806
14819
  }
14807
14820
  else if (this.dataType == 2) {
14808
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
14821
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
14809
14822
  }
14810
- this.expandAll(parentsId);
14823
+ this.expandAll(parentsId.reverse());
14811
14824
  var liEle = this.getElement(node);
14812
14825
  if (!isNullOrUndefined(liEle)) {
14813
14826
  if (typeof node == 'object') {