@syncfusion/ej2-navigations 23.1.36 → 23.1.40

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.
@@ -2489,6 +2489,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2489
2489
  if (!cli.classList.contains(SEPARATOR)) {
2490
2490
  this.showSubMenu = true;
2491
2491
  var cul = cli.parentNode;
2492
+ if (isNullOrUndefined(cul)) {
2493
+ return;
2494
+ }
2492
2495
  this.cliIdx = this.getIdx(cul, cli);
2493
2496
  if (this.isMenu || !Browser.isDevice) {
2494
2497
  var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -3168,7 +3171,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3168
3171
  if (ishide && validUl === items[i]) {
3169
3172
  ul.children[index].classList.add(HIDE);
3170
3173
  }
3171
- else {
3174
+ else if (!ishide && validUl === items[i]) {
3172
3175
  ul.children[index].classList.remove(HIDE);
3173
3176
  }
3174
3177
  }
@@ -4061,13 +4064,14 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4061
4064
  * @returns {void}
4062
4065
  */
4063
4066
  Toolbar.prototype.render = function () {
4067
+ var _this = this;
4064
4068
  this.initialize();
4065
4069
  this.renderControl();
4066
4070
  this.wireEvents();
4067
4071
  this.renderComplete();
4068
4072
  if (this.isReact && this.portals && this.portals.length > 0) {
4069
4073
  this.renderReactTemplates(function () {
4070
- this.refreshOverflow();
4074
+ _this.refreshOverflow();
4071
4075
  });
4072
4076
  }
4073
4077
  };
@@ -6389,9 +6393,11 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6389
6393
  if (typeof (value) === 'string') {
6390
6394
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
6391
6395
  }
6392
- else if (!isNullOrUndefined(this.trgtEle) && (value instanceof (HTMLElement))) {
6396
+ else if (value instanceof (HTMLElement)) {
6393
6397
  ele.appendChild(value);
6394
- ele.firstElementChild.style.display = '';
6398
+ if (this.trgtEle) {
6399
+ ele.firstElementChild.style.display = '';
6400
+ }
6395
6401
  }
6396
6402
  else {
6397
6403
  templateFn = compile(value);
@@ -7862,6 +7868,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7862
7868
  * @returns {void}
7863
7869
  */
7864
7870
  Tab.prototype.render = function () {
7871
+ var _this = this;
7865
7872
  this.btnCls = this.createElement('span', { className: CLS_ICONS + ' ' + CLS_ICON_CLOSE, attrs: { title: this.title } });
7866
7873
  this.tabId = this.element.id.length > 0 ? ('-' + this.element.id) : getRandomId();
7867
7874
  this.renderContainer();
@@ -7869,10 +7876,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7869
7876
  this.initRender = false;
7870
7877
  if (this.isReact && this.portals && this.portals.length > 0) {
7871
7878
  this.renderReactTemplates(function () {
7872
- if (!isNullOrUndefined(this.tbObj)) {
7873
- this.tbObj.refreshOverflow();
7879
+ if (!isNullOrUndefined(_this.tbObj)) {
7880
+ _this.tbObj.refreshOverflow();
7874
7881
  }
7875
- this.refreshActiveBorder();
7882
+ _this.refreshActiveBorder();
7876
7883
  });
7877
7884
  }
7878
7885
  };
@@ -15380,7 +15387,8 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
15380
15387
  this.show();
15381
15388
  }
15382
15389
  else if (!this.isOpen) {
15383
- addClass([this.element], CLOSE);
15390
+ addClass([this.element], [CLOSE, DISABLEANIMATION]);
15391
+ removeClass([this.element], DISABLEANIMATION);
15384
15392
  }
15385
15393
  };
15386
15394
  Sidebar.prototype.checkType = function (val) {