mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(router-outlet): fix stack attribute detection (#14921)
(stack !== 'false' OR stack !== false) will always be TRUE. That OR should be an AND.
This commit is contained in:
@ -32,7 +32,7 @@ export class IonRouterOutlet implements OnDestroy, OnInit {
|
||||
) {
|
||||
this.name = name || PRIMARY_OUTLET;
|
||||
parentContexts.onChildOutletCreated(this.name, this as any);
|
||||
const hasStack = stack !== 'false' || stack !== false;
|
||||
const hasStack = stack !== 'false' && stack !== false;
|
||||
this.stackCtrl = new StackController(hasStack, elementRef.nativeElement, router, this.navCtrl);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user