mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(alert): add ability to use alert inline (#26316)
This commit is contained in:
@@ -86,7 +86,14 @@ export const CoreDelegate = () => {
|
||||
BaseComponent.appendChild(el);
|
||||
|
||||
await new Promise((resolve) => componentOnReady(el, resolve));
|
||||
} else if (BaseComponent.children.length > 0) {
|
||||
} else if (
|
||||
BaseComponent.children.length > 0 &&
|
||||
(BaseComponent.tagName === 'ION-MODAL' || BaseComponent.tagName === 'ION-POPOVER')
|
||||
) {
|
||||
/**
|
||||
* The delegate host wrapper el is only needed for modals and popovers
|
||||
* because they allow the dev to provide custom content to the overlay.
|
||||
*/
|
||||
const root = BaseComponent.children[0] as HTMLElement;
|
||||
if (!root.classList.contains('ion-delegate-host')) {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user