feat(custom-elements): add experimental custom elements build (#22863)

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
Adam Bradley
2021-02-11 11:08:00 -06:00
committed by GitHub
parent 19d63f6243
commit 0de75afbef
61 changed files with 7258 additions and 9441 deletions

View File

@ -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)))
);
};