@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.
@@ -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'))
@@ -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);