FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(back-navigation): app freeze on going back in parent frame with s… · NativeScript/NativeScript@fc1f8c1 · GitHub

Commit fc1f8c1

Browse files
authored
fix(back-navigation): app freeze on going back in parent frame with states (#6595)
Endless loop while searching for parent frame that can go back. Caught in Angular app when trying to go back from nested named lazy loaded outlet using the android hadrware back button.
1 parent 33d6a64 commit fc1f8c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tns-core-modules/ui/frame/frame-common.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export function goBack(): boolean {
616616
if (parentFrame && parentFrame.canGoBack()) {
617617
parentFrameCanGoBack = true;
618618
} else {
619-
parentFrame = <FrameBase>getAncestor(top, "Frame");
619+
parentFrame = <FrameBase>getAncestor(parentFrame, "Frame");
620620
}
621621
}
622622

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL