Skip to content

Commit

Permalink
fix(router-outlet): enteringEl !== leavingEl
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 30, 2018
1 parent ff1ed88 commit 0d44253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular/src/directives/navigation/router-controller.ts
Expand Up @@ -85,7 +85,7 @@ export class StackController {
const enteringEl = enteringView ? enteringView.element : undefined;
const leavingEl = leavingView ? leavingView.element : undefined;
const containerEl = this.containerEl;
if (enteringEl) {
if (enteringEl && enteringEl !== leavingEl) {
enteringEl.classList.add('ion-page', 'hide-page');
containerEl.appendChild(enteringEl);

Expand Down

0 comments on commit 0d44253

Please sign in to comment.