mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
refactor(framework-delegate): wrap user element with ion-page for modal and nav
This commit is contained in:
@ -7,4 +7,12 @@ export function getOrAppendElement(tagName: string): Element {
|
||||
const tmp = document.createElement(tagName);
|
||||
document.body.appendChild(tmp);
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
|
||||
export function isElementNav(element: HTMLElement) {
|
||||
return element.tagName.toUpperCase() === 'ION-NAV';
|
||||
}
|
||||
|
||||
export function isElementModal(element: HTMLElement) {
|
||||
return element.classList.contains('modal-wrapper');
|
||||
}
|
||||
|
Reference in New Issue
Block a user