Skip to content

Commit 16e992a

Browse files
kensodemannmanucorporat
authored andcommitted
fix(router-outlet): fix stack attribute detection (#14921)
(stack !== 'false' OR stack !== false) will always be TRUE. That OR should be an AND.
1 parent 0fb3c62 commit 16e992a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular/src/directives/navigation/ion-router-outlet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class IonRouterOutlet implements OnDestroy, OnInit {
3232
) {
3333
this.name = name || PRIMARY_OUTLET;
3434
parentContexts.onChildOutletCreated(this.name, this as any);
35-
const hasStack = stack !== 'false' || stack !== false;
35+
const hasStack = stack !== 'false' && stack !== false;
3636
this.stackCtrl = new StackController(hasStack, elementRef.nativeElement, router, this.navCtrl);
3737
}
3838

0 commit comments

Comments
 (0)