@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.
@@ -3856,9 +3856,9 @@ let Toolbar = class Toolbar extends Component {
3856
3856
  [].slice.call(btnItems).forEach((el) => {
3857
3857
  const instance = el.ej2_instances && el.ej2_instances[0];
3858
3858
  if (!isNullOrUndefined(closest(el, '.' + CLS_TEMPLATE)) &&
3859
- instance &&
3860
- instance.getModuleName &&
3861
- instance.getModuleName() === 'dropdown-btn') {
3859
+ this.element.parentElement &&
3860
+ this.element.parentElement.classList.contains('headless-toolbar-wrapper') &&
3861
+ instance && instance.getModuleName && instance.getModuleName() === 'dropdown-btn') {
3862
3862
  return;
3863
3863
  }
3864
3864
  if (!isNullOrUndefined(el) && !isNullOrUndefined(el.ej2_instances) && !isNullOrUndefined(el.ej2_instances[0]) && !(el.ej2_instances[0].isDestroyed)) {
@@ -6752,7 +6752,7 @@ let Accordion = class Accordion extends Component {
6752
6752
  innerEle.appendChild(ctnEle);
6753
6753
  }
6754
6754
  let hdr = select('.' + CLS_HEADER, innerEle);
6755
- if (item.expanded && !isNullOrUndefined(index) && (!this.enablePersistence)) {
6755
+ if (item.expanded && !isNullOrUndefined(index) && (!this.enablePersistence || !this.getLocalData())) {
6756
6756
  if (this.initExpand.indexOf(index) === -1) {
6757
6757
  this.initExpand.push(index);
6758
6758
  }
@@ -9169,7 +9169,11 @@ let Tab = class Tab extends Component {
9169
9169
  else {
9170
9170
  this.cntEle = select('.' + CLS_TAB + ' > .' + CLS_CONTENT$1, this.element);
9171
9171
  while (this.loadOn === 'Dynamic' && this.cntEle.firstElementChild) {
9172
- this.cntEle.removeChild(this.cntEle.firstElementChild);
9172
+ const prevCntTrg = this.cntEle.firstElementChild;
9173
+ if (this.isAngular && prevCntTrg.classList.contains(CLS_ITEM$2)) {
9174
+ this.clearTabTemplate(prevCntTrg, 'content', CLS_ITEM$2);
9175
+ }
9176
+ this.cntEle.removeChild(prevCntTrg);
9173
9177
  }
9174
9178
  const item = this.getTrgContent(this.cntEle, this.extIndex(id));
9175
9179
  if (isNullOrUndefined(item)) {