From d52885f8eb54a322065e292eca6de0e53c3e70c0 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Thu, 1 Mar 2018 19:53:41 +0100 Subject: [PATCH] fix(modal): adds .ion-page --- packages/core/src/components/modal/modal.tsx | 5 ++++- packages/core/src/components/popover/popover.tsx | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/core/src/components/modal/modal.tsx b/packages/core/src/components/modal/modal.tsx index 447fe3dafa..c0411cf298 100644 --- a/packages/core/src/components/modal/modal.tsx +++ b/packages/core/src/components/modal/modal.tsx @@ -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(); diff --git a/packages/core/src/components/popover/popover.tsx b/packages/core/src/components/popover/popover.tsx index 71bf9d042b..ebfc7c7c3a 100644 --- a/packages/core/src/components/popover/popover.tsx +++ b/packages/core/src/components/popover/popover.tsx @@ -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(() => {