File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
nativescript-angular/router Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,7 @@ export class NSLocationStrategy extends LocationStrategy {
527
527
if ( ! lastState || ! equalStateUrls ) {
528
528
outlet . states . push ( locationState ) ;
529
529
530
+ // Update last state segmentGroup of parent Outlet.
530
531
if ( this . _modalNavigationDepth === 0 && ! outlet . showingModal ) {
531
532
this . updateParentsStates ( outlet , currentSegmentGroup . parent ) ;
532
533
}
@@ -566,6 +567,11 @@ export class NSLocationStrategy extends LocationStrategy {
566
567
newOutlet . parent = parent ;
567
568
this . outlets . push ( newOutlet ) ;
568
569
570
+ // Update last state segmentGroup of parent Outlet.
571
+ if ( this . _modalNavigationDepth === 0 && ! newOutlet . showingModal ) {
572
+ this . updateParentsStates ( newOutlet , segmentGroup . parent ) ;
573
+ }
574
+
569
575
return newOutlet ;
570
576
}
571
577
You can’t perform that action at this time.
0 commit comments