@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.2.3
3
+ * version : 33.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-navigations",
3
- "version": "33.2.3",
3
+ "version": "33.2.4",
4
4
  "description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -11,7 +11,7 @@
11
11
  "@syncfusion/ej2-base": "~33.2.3",
12
12
  "@syncfusion/ej2-buttons": "~33.2.3",
13
13
  "@syncfusion/ej2-data": "~33.2.3",
14
- "@syncfusion/ej2-inputs": "~33.2.3",
14
+ "@syncfusion/ej2-inputs": "~33.2.4",
15
15
  "@syncfusion/ej2-lists": "~33.2.3",
16
16
  "@syncfusion/ej2-popups": "~33.2.3"
17
17
  },
package/src/tab/tab.js CHANGED
@@ -1048,9 +1048,15 @@ var Tab = /** @class */ (function (_super) {
1048
1048
  addClass([this.element], [CLS_FILL]);
1049
1049
  var parent_1 = this.element.parentElement;
1050
1050
  var heightVal = parent_1.style.height || parent_1.getAttribute('height');
1051
+ while (parent_1 && !heightVal) {
1052
+ heightVal = parent_1.style.height || parent_1.getAttribute('height');
1053
+ if (!heightVal) {
1054
+ parent_1 = parent_1.parentElement;
1055
+ }
1056
+ }
1051
1057
  setStyle(this.element, { 'height': heightVal != null ? heightVal : '100%' });
1052
1058
  this.loadContentElement();
1053
- this.cntEle.style.height = heightVal != null ? "calc(" + heightVal + " - " + this.hdrEle.offsetHeight + "px)" : 'calc(100vh - ' + this.hdrEle.offsetHeight + 'px)';
1059
+ this.cntEle.style.height = heightVal != null ? "calc(" + heightVal + " - " + this.hdrEle.offsetHeight + "px)" : 'calc(100vh - ' + (this.hdrEle.offsetHeight + this.hdrEle.scrollHeight) + 'px)';
1054
1060
  }
1055
1061
  else if (this.heightAdjustMode === 'Auto') {
1056
1062
  if (this.isTemplate === true) {
@@ -324,8 +324,12 @@ var Toolbar = /** @class */ (function (_super) {
324
324
  }
325
325
  };
326
326
  Toolbar.prototype.destroyItems = function () {
327
+ var _this = this;
327
328
  if (this.element) {
328
- [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) { detach(el); });
329
+ [].slice.call(this.element.querySelectorAll('.' + CLS_ITEM)).forEach(function (el) {
330
+ EventHandler.remove(el, 'click', _this.itemClick);
331
+ detach(el);
332
+ });
329
333
  }
330
334
  if (this.tbarAlign) {
331
335
  var tbarItems = this.element.querySelector('.' + CLS_ITEMS);
@@ -1933,6 +1937,7 @@ var Toolbar = /** @class */ (function (_super) {
1933
1937
  if (!isNOU(btnItem) && !isNOU(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
1934
1938
  btnItem.ej2_instances[0].destroy();
1935
1939
  }
1940
+ EventHandler.remove(innerItems[parseInt(index.toString(), 10)], 'click', this.itemClick);
1936
1941
  detach(innerItems[parseInt(index.toString(), 10)]);
1937
1942
  this.items.splice(eleIdx, 1);
1938
1943
  this.tbarEle.splice(eleIdx, 1);
@@ -2076,7 +2081,7 @@ var Toolbar = /** @class */ (function (_super) {
2076
2081
  dom.setAttribute('aria-label', (item.text || item.tooltipText));
2077
2082
  dom.setAttribute('aria-disabled', 'false');
2078
2083
  innerEle.appendChild(dom);
2079
- innerEle.addEventListener('click', this.itemClick.bind(this));
2084
+ EventHandler.add(innerEle, 'click', this.itemClick, this);
2080
2085
  break;
2081
2086
  case 'Separator':
2082
2087
  this.add(innerEle, CLS_SEPARATOR);
@@ -2320,6 +2325,7 @@ var Toolbar = /** @class */ (function (_super) {
2320
2325
  if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
2321
2326
  this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
2322
2327
  }
2328
+ EventHandler.remove(itemCol[parseInt(index.toString(), 10)], 'click', this.itemClick);
2323
2329
  detach(itemCol[parseInt(index.toString(), 10)]);
2324
2330
  this.tbarEle.splice(index, 1);
2325
2331
  this.addItems([this.items[parseInt(index.toString(), 10)]], index);