mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
feat(react): add custom elements bundle (#23896)
This commit is contained in:
@ -60,7 +60,12 @@ export class SplitPane implements ComponentInterface {
|
||||
this.ionSplitPaneVisible.emit(detail);
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
async connectedCallback() {
|
||||
// TODO: connectedCallback is fired in CE build
|
||||
// before WC is defined. This needs to be fixed in Stencil.
|
||||
if (typeof (customElements as any) !== 'undefined') {
|
||||
await customElements.whenDefined('ion-split-pane');
|
||||
}
|
||||
this.styleChildren();
|
||||
this.updateState();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user