mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
feat(custom-elements): add experimental custom elements build (#22863)
Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { AnimationBuilder, BackButtonEvent, MenuI } from '../../interface';
|
||||
import { MENU_BACK_BUTTON_PRIORITY } from '../hardware-back-button';
|
||||
import { componentOnReady } from '../helpers';
|
||||
|
||||
import { menuOverlayAnimation } from './animations/overlay';
|
||||
import { menuPushAnimation } from './animations/push';
|
||||
@ -199,7 +200,7 @@ const createMenuController = () => {
|
||||
const waitUntilReady = () => {
|
||||
return Promise.all(
|
||||
Array.from(document.querySelectorAll('ion-menu'))
|
||||
.map(menu => menu.componentOnReady())
|
||||
.map(menu => new Promise(resolve => componentOnReady(menu, resolve)))
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user