@syncfusion/ej2-navigations 23.1.39 → 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'))
@@ -6390,9 +6393,11 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6390
6393
  if (typeof (value) === 'string') {
6391
6394
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
6392
6395
  }
6393
- else if (!isNullOrUndefined(this.trgtEle) && (value instanceof (HTMLElement))) {
6396
+ else if (value instanceof (HTMLElement)) {
6394
6397
  ele.appendChild(value);
6395
- ele.firstElementChild.style.display = '';
6398
+ if (this.trgtEle) {
6399
+ ele.firstElementChild.style.display = '';
6400
+ }
6396
6401
  }
6397
6402
  else {
6398
6403
  templateFn = compile(value);