@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.
@@ -2392,6 +2392,9 @@ let MenuBase = class MenuBase extends Component {
2392
2392
  if (!cli.classList.contains(SEPARATOR)) {
2393
2393
  this.showSubMenu = true;
2394
2394
  const cul = cli.parentNode;
2395
+ if (isNullOrUndefined(cul)) {
2396
+ return;
2397
+ }
2395
2398
  this.cliIdx = this.getIdx(cul, cli);
2396
2399
  if (this.isMenu || !Browser.isDevice) {
2397
2400
  const culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -3055,7 +3058,7 @@ let MenuBase = class MenuBase extends Component {
3055
3058
  if (ishide && validUl === items[i]) {
3056
3059
  ul.children[index].classList.add(HIDE);
3057
3060
  }
3058
- else {
3061
+ else if (!ishide && validUl === items[i]) {
3059
3062
  ul.children[index].classList.remove(HIDE);
3060
3063
  }
3061
3064
  }
@@ -3926,7 +3929,7 @@ let Toolbar = class Toolbar extends Component {
3926
3929
  this.wireEvents();
3927
3930
  this.renderComplete();
3928
3931
  if (this.isReact && this.portals && this.portals.length > 0) {
3929
- this.renderReactTemplates(function () {
3932
+ this.renderReactTemplates(() => {
3930
3933
  this.refreshOverflow();
3931
3934
  });
3932
3935
  }
@@ -6199,9 +6202,11 @@ let Accordion = class Accordion extends Component {
6199
6202
  if (typeof (value) === 'string') {
6200
6203
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
6201
6204
  }
6202
- else if (!isNullOrUndefined(this.trgtEle) && (value instanceof (HTMLElement))) {
6205
+ else if (value instanceof (HTMLElement)) {
6203
6206
  ele.appendChild(value);
6204
- ele.firstElementChild.style.display = '';
6207
+ if (this.trgtEle) {
6208
+ ele.firstElementChild.style.display = '';
6209
+ }
6205
6210
  }
6206
6211
  else {
6207
6212
  templateFn = compile(value);
@@ -7600,7 +7605,7 @@ let Tab = class Tab extends Component {
7600
7605
  this.wireEvents();
7601
7606
  this.initRender = false;
7602
7607
  if (this.isReact && this.portals && this.portals.length > 0) {
7603
- this.renderReactTemplates(function () {
7608
+ this.renderReactTemplates(() => {
7604
7609
  if (!isNullOrUndefined(this.tbObj)) {
7605
7610
  this.tbObj.refreshOverflow();
7606
7611
  }
@@ -15015,7 +15020,8 @@ let Sidebar = class Sidebar extends Component {
15015
15020
  this.show();
15016
15021
  }
15017
15022
  else if (!this.isOpen) {
15018
- addClass([this.element], CLOSE);
15023
+ addClass([this.element], [CLOSE, DISABLEANIMATION]);
15024
+ removeClass([this.element], DISABLEANIMATION);
15019
15025
  }
15020
15026
  }
15021
15027
  checkType(val) {