mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
fix modal
This commit is contained in:
@ -63,7 +63,7 @@ export class IonicApp {
|
|||||||
context,
|
context,
|
||||||
injector);
|
injector);
|
||||||
|
|
||||||
hostViewRef.elementRef = new ElementRef(hostViewRef, 0);
|
hostViewRef.elementRef = new ElementRef(hostViewRef, 0, viewMngr._renderer);
|
||||||
hostViewRef.instance = viewMngr.getComponent(hostViewRef.elementRef);
|
hostViewRef.instance = viewMngr.getComponent(hostViewRef.elementRef);
|
||||||
|
|
||||||
hostViewRef.dispose = () => {
|
hostViewRef.dispose = () => {
|
||||||
|
@ -61,6 +61,9 @@ export class IonicComponent extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function appendModeConfig(ComponentType) {
|
function appendModeConfig(ComponentType) {
|
||||||
|
if (!ComponentType) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
if (typeof ComponentType === 'object') {
|
if (typeof ComponentType === 'object') {
|
||||||
return ComponentType;
|
return ComponentType;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user