@syncfusion/ej2-navigations 35.1.37 → 35.1.39

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.
@@ -3994,9 +3994,9 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3994
3994
  [].slice.call(btnItems).forEach(function (el) {
3995
3995
  var instance = el.ej2_instances && el.ej2_instances[0];
3996
3996
  if (!isNullOrUndefined(closest(el, '.' + CLS_TEMPLATE)) &&
3997
- instance &&
3998
- instance.getModuleName &&
3999
- instance.getModuleName() === 'dropdown-btn') {
3997
+ _this.element.parentElement &&
3998
+ _this.element.parentElement.classList.contains('headless-toolbar-wrapper') &&
3999
+ instance && instance.getModuleName && instance.getModuleName() === 'dropdown-btn') {
4000
4000
  return;
4001
4001
  }
4002
4002
  if (!isNullOrUndefined(el) && !isNullOrUndefined(el.ej2_instances) && !isNullOrUndefined(el.ej2_instances[0]) && !(el.ej2_instances[0].isDestroyed)) {
@@ -6948,7 +6948,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6948
6948
  innerEle.appendChild(ctnEle);
6949
6949
  }
6950
6950
  var hdr = select('.' + CLS_HEADER, innerEle);
6951
- if (item.expanded && !isNullOrUndefined(index) && (!this.enablePersistence)) {
6951
+ if (item.expanded && !isNullOrUndefined(index) && (!this.enablePersistence || !this.getLocalData())) {
6952
6952
  if (this.initExpand.indexOf(index) === -1) {
6953
6953
  this.initExpand.push(index);
6954
6954
  }
@@ -9452,7 +9452,11 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9452
9452
  else {
9453
9453
  this.cntEle = select('.' + CLS_TAB + ' > .' + CLS_CONTENT$1, this.element);
9454
9454
  while (this.loadOn === 'Dynamic' && this.cntEle.firstElementChild) {
9455
- this.cntEle.removeChild(this.cntEle.firstElementChild);
9455
+ var prevCntTrg = this.cntEle.firstElementChild;
9456
+ if (this.isAngular && prevCntTrg.classList.contains(CLS_ITEM$2)) {
9457
+ this.clearTabTemplate(prevCntTrg, 'content', CLS_ITEM$2);
9458
+ }
9459
+ this.cntEle.removeChild(prevCntTrg);
9456
9460
  }
9457
9461
  var item = this.getTrgContent(this.cntEle, this.extIndex(id));
9458
9462
  if (isNullOrUndefined(item)) {