mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +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;
|
this.data.modal = this.el;
|
||||||
|
|
||||||
return this.delegate.attachViewToDom(userComponentParent, this.component, this.data, cssClasses)
|
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.playAnimation(animationBuilder))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.ionModalDidPresent.emit();
|
this.ionModalDidPresent.emit();
|
||||||
|
@ -184,7 +184,9 @@ export class Popover implements OverlayInterface {
|
|||||||
this.data.modal = this.el;
|
this.data.modal = this.el;
|
||||||
|
|
||||||
return this.delegate.attachViewToDom(userComponentParent, this.component, this.data, cssClasses)
|
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(() => domControllerAsync(this.dom.raf))
|
||||||
.then(() => this.playAnimation(animationBuilder))
|
.then(() => this.playAnimation(animationBuilder))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
Reference in New Issue
Block a user