fix(modal): adds .ion-page

This commit is contained in:
Manu Mtz.-Almeida
2018-03-01 19:53:41 +01:00
parent 217c51e4c5
commit d52885f8eb
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -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(() => {