mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(angular): make pages invisible before they are rendered
This commit is contained in:
@ -100,7 +100,7 @@ export class StackController {
|
|||||||
const leavingEl = leavingView ? leavingView.element : undefined;
|
const leavingEl = leavingView ? leavingView.element : undefined;
|
||||||
const containerEl = this.containerEl;
|
const containerEl = this.containerEl;
|
||||||
if (enteringEl && enteringEl !== leavingEl) {
|
if (enteringEl && enteringEl !== leavingEl) {
|
||||||
enteringEl.classList.add('ion-page', 'hide-page');
|
enteringEl.classList.add('ion-page', 'ion-page-invisible');
|
||||||
containerEl.appendChild(enteringEl);
|
containerEl.appendChild(enteringEl);
|
||||||
|
|
||||||
await containerEl.componentOnReady();
|
await containerEl.componentOnReady();
|
||||||
|
Reference in New Issue
Block a user