mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(modal): adds .ion-page
This commit is contained in:
@ -175,7 +175,10 @@ export class Modal implements OverlayInterface {
|
||||
this.data.modal = this.el;
|
||||
|
||||
return this.delegate.attachViewToDom(userComponentParent, this.component, this.data, cssClasses)
|
||||
.then((mountingData) => this.usersComponentElement = mountingData.element)
|
||||
.then((mountingData) => {
|
||||
mountingData.element.classList.add('ion-page');
|
||||
this.usersComponentElement = mountingData.element;
|
||||
})
|
||||
.then(() => this.playAnimation(animationBuilder))
|
||||
.then(() => {
|
||||
this.ionModalDidPresent.emit();
|
||||
|
@ -184,7 +184,9 @@ export class Popover implements OverlayInterface {
|
||||
this.data.modal = this.el;
|
||||
|
||||
return this.delegate.attachViewToDom(userComponentParent, this.component, this.data, cssClasses)
|
||||
.then((mountingData) => this.usersComponentElement = mountingData.element)
|
||||
.then((mountingData) => {
|
||||
this.usersComponentElement = mountingData.element;
|
||||
})
|
||||
.then(() => domControllerAsync(this.dom.raf))
|
||||
.then(() => this.playAnimation(animationBuilder))
|
||||
.then(() => {
|
||||
|
Reference in New Issue
Block a user