From a44b84437dc06297f301bbb2f1c90547e5715369 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Wed, 25 Jul 2018 12:09:44 +0200 Subject: [PATCH] fix(angular): hide pages properly --- angular/src/directives/navigation/router-controller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/angular/src/directives/navigation/router-controller.ts b/angular/src/directives/navigation/router-controller.ts index 6745e34034a..4279c4a68ac 100644 --- a/angular/src/directives/navigation/router-controller.ts +++ b/angular/src/directives/navigation/router-controller.ts @@ -78,8 +78,9 @@ export class StackController { .filter(view => !this.views.includes(view)) .forEach(view => destroyView(view)); - for (let i = 0; i < this.views.length - 1; i++) { - this.views[i].element.hidden = true; + for (const {element} of this.views) { + element.setAttribute('aria-hidden', 'true'); + element.classList.add('ion-page-hidden'); } this.viewsSnapshot = this.views.slice(); }