Skip to content

Commit

Permalink
fix(angular): hide pages properly
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 25, 2018
1 parent f52dece commit a44b844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions angular/src/directives/navigation/router-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit a44b844

Please sign in to comment.