@syncfusion/ej2-splitbuttons 32.2.3 → 33.1.44
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.
- package/dist/ej2-splitbuttons.min.js +2 -2
- package/dist/ej2-splitbuttons.umd.min.js +2 -2
- package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es2015.js +15 -1
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +15 -1
- package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
- package/dist/global/ej2-splitbuttons.min.js +2 -2
- package/dist/global/ej2-splitbuttons.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/drop-down-button/drop-down-button.js +9 -1
- package/src/split-button/split-button.js +6 -0
- package/styles/bootstrap5.3-lite.css +2 -2
- package/styles/bootstrap5.3.css +2 -2
- package/styles/button-group/bootstrap5.3.css +2 -2
- package/styles/button-group/material3-dark.css +0 -19
- package/styles/button-group/material3.css +0 -19
- package/styles/drop-down-button/material3-dark.css +0 -1
- package/styles/drop-down-button/material3.css +0 -1
- package/styles/material3-dark-lite.css +0 -23
- package/styles/material3-dark.css +0 -23
- package/styles/material3-lite.css +0 -23
- package/styles/material3.css +0 -23
- package/styles/split-button/material3-dark.css +0 -3
- package/styles/split-button/material3.css +0 -3
|
@@ -313,7 +313,15 @@ let DropDownButton = class DropDownButton extends Component {
|
|
|
313
313
|
className: this.popupWidth !== 'auto' ? `${classNames.POPUP} ${classNames.POPUPWIDTH}` : classNames.POPUP,
|
|
314
314
|
id: this.element.id + '-popup'
|
|
315
315
|
});
|
|
316
|
-
document.body
|
|
316
|
+
let appendToElement = document.body;
|
|
317
|
+
if (this.isAngular) {
|
|
318
|
+
const cdkPane = this.element.closest('.cdk-overlay-pane');
|
|
319
|
+
const popoverEl = this.element.closest('[popover]');
|
|
320
|
+
if (cdkPane && popoverEl) {
|
|
321
|
+
appendToElement = cdkPane;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
appendToElement.appendChild(div);
|
|
317
325
|
this.dropDown = new Popup(div, {
|
|
318
326
|
width: this.popupWidth,
|
|
319
327
|
relateTo: this.element,
|
|
@@ -1309,6 +1317,9 @@ let SplitButton = class SplitButton extends DropDownButton {
|
|
|
1309
1317
|
};
|
|
1310
1318
|
this.secondaryBtnObj = new DropDownButton(dropDownBtnModel);
|
|
1311
1319
|
this.secondaryBtnObj.createElement = this.createElement;
|
|
1320
|
+
if (this.isAngular) {
|
|
1321
|
+
this.secondaryBtnObj.isAngular = this.isAngular;
|
|
1322
|
+
}
|
|
1312
1323
|
this.secondaryBtnObj.appendTo(btnElem);
|
|
1313
1324
|
if (!this.createPopupOnClick) {
|
|
1314
1325
|
this.secondaryBtnObj.dropDown.relateTo = this.wrapper;
|
|
@@ -1368,6 +1379,9 @@ let SplitButton = class SplitButton extends DropDownButton {
|
|
|
1368
1379
|
}
|
|
1369
1380
|
this.unWireEvents();
|
|
1370
1381
|
}
|
|
1382
|
+
else if (this.wrapper && this.wrapper.tagName === TAGNAME) {
|
|
1383
|
+
this.unWireEvents();
|
|
1384
|
+
}
|
|
1371
1385
|
}
|
|
1372
1386
|
this.primaryBtnObj.destroy();
|
|
1373
1387
|
this.secondaryBtnObj.destroy();
|