@syncfusion/ej2-navigations 33.2.3 → 33.2.4

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.
@@ -4093,8 +4093,12 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4093
4093
  }
4094
4094
  };
4095
4095
  Toolbar.prototype.destroyItems = function () {
4096
+ var _this = this;
4096
4097
  if (this.element) {
4097
- [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) { detach(el); });
4098
+ [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) {
4099
+ EventHandler.remove(el, 'click', _this.itemClick);
4100
+ detach(el);
4101
+ });
4098
4102
  }
4099
4103
  if (this.tbarAlign) {
4100
4104
  var tbarItems = this.element.querySelector('.' + CLS_ITEMS);
@@ -5702,6 +5706,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5702
5706
  if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
5703
5707
  btnItem.ej2_instances[0].destroy();
5704
5708
  }
5709
+ EventHandler.remove(innerItems[parseInt(index.toString(), 10)], 'click', this.itemClick);
5705
5710
  detach(innerItems[parseInt(index.toString(), 10)]);
5706
5711
  this.items.splice(eleIdx, 1);
5707
5712
  this.tbarEle.splice(eleIdx, 1);
@@ -5845,7 +5850,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5845
5850
  dom.setAttribute('aria-label', (item.text || item.tooltipText));
5846
5851
  dom.setAttribute('aria-disabled', 'false');
5847
5852
  innerEle.appendChild(dom);
5848
- innerEle.addEventListener('click', this.itemClick.bind(this));
5853
+ EventHandler.add(innerEle, 'click', this.itemClick, this);
5849
5854
  break;
5850
5855
  case 'Separator':
5851
5856
  this.add(innerEle, CLS_SEPARATOR);
@@ -6089,6 +6094,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
6089
6094
  if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
6090
6095
  this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
6091
6096
  }
6097
+ EventHandler.remove(itemCol[parseInt(index.toString(), 10)], 'click', this.itemClick);
6092
6098
  detach(itemCol[parseInt(index.toString(), 10)]);
6093
6099
  this.tbarEle.splice(index, 1);
6094
6100
  this.addItems([this.items[parseInt(index.toString(), 10)]], index);
@@ -9146,9 +9152,15 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9146
9152
  addClass([this.element], [CLS_FILL]);
9147
9153
  var parent_1 = this.element.parentElement;
9148
9154
  var heightVal = parent_1.style.height || parent_1.getAttribute('height');
9155
+ while (parent_1 && !heightVal) {
9156
+ heightVal = parent_1.style.height || parent_1.getAttribute('height');
9157
+ if (!heightVal) {
9158
+ parent_1 = parent_1.parentElement;
9159
+ }
9160
+ }
9149
9161
  setStyleAttribute(this.element, { 'height': heightVal != null ? heightVal : '100%' });
9150
9162
  this.loadContentElement();
9151
- this.cntEle.style.height = heightVal != null ? "calc(" + heightVal + " - " + this.hdrEle.offsetHeight + "px)" : 'calc(100vh - ' + this.hdrEle.offsetHeight + 'px)';
9163
+ this.cntEle.style.height = heightVal != null ? "calc(" + heightVal + " - " + this.hdrEle.offsetHeight + "px)" : 'calc(100vh - ' + (this.hdrEle.offsetHeight + this.hdrEle.scrollHeight) + 'px)';
9152
9164
  }
9153
9165
  else if (this.heightAdjustMode === 'Auto') {
9154
9166
  if (this.isTemplate === true) {