@syncfusion/ej2-splitbuttons 32.2.3 → 32.2.7

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 : 32.2.3
3
+ * version : 32.2.7
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-splitbuttons",
3
- "version": "32.2.3",
3
+ "version": "32.2.7",
4
4
  "description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,8 +8,8 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-splitbuttons.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~32.2.3",
12
- "@syncfusion/ej2-popups": "~32.2.3"
11
+ "@syncfusion/ej2-base": "~32.2.6",
12
+ "@syncfusion/ej2-popups": "~32.2.7"
13
13
  },
14
14
  "devDependencies": {},
15
15
  "keywords": [
@@ -178,7 +178,15 @@ var DropDownButton = /** @class */ (function (_super) {
178
178
  className: this.popupWidth !== 'auto' ? classNames.POPUP + " " + classNames.POPUPWIDTH : classNames.POPUP,
179
179
  id: this.element.id + '-popup'
180
180
  });
181
- document.body.appendChild(div);
181
+ var appendToElement = document.body;
182
+ if (this.isAngular) {
183
+ var cdkPane = this.element.closest('.cdk-overlay-pane');
184
+ var popoverEl = this.element.closest('[popover]');
185
+ if (cdkPane && popoverEl) {
186
+ appendToElement = cdkPane;
187
+ }
188
+ }
189
+ appendToElement.appendChild(div);
182
190
  this.dropDown = new Popup(div, {
183
191
  width: this.popupWidth,
184
192
  relateTo: this.element,
@@ -202,6 +202,9 @@ var SplitButton = /** @class */ (function (_super) {
202
202
  };
203
203
  this.secondaryBtnObj = new DropDownButton(dropDownBtnModel);
204
204
  this.secondaryBtnObj.createElement = this.createElement;
205
+ if (this.isAngular) {
206
+ this.secondaryBtnObj.isAngular = this.isAngular;
207
+ }
205
208
  this.secondaryBtnObj.appendTo(btnElem);
206
209
  if (!this.createPopupOnClick) {
207
210
  this.secondaryBtnObj.dropDown.relateTo = this.wrapper;
@@ -262,6 +265,9 @@ var SplitButton = /** @class */ (function (_super) {
262
265
  }
263
266
  this.unWireEvents();
264
267
  }
268
+ else if (this.wrapper && this.wrapper.tagName === TAGNAME) {
269
+ this.unWireEvents();
270
+ }
265
271
  }
266
272
  this.primaryBtnObj.destroy();
267
273
  this.secondaryBtnObj.destroy();