mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
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.
This commit is contained in:

committed by
GitHub

parent
33d6a649ba
commit
fc1f8c1e42
@ -616,7 +616,7 @@ export function goBack(): boolean {
|
||||
if (parentFrame && parentFrame.canGoBack()) {
|
||||
parentFrameCanGoBack = true;
|
||||
} else {
|
||||
parentFrame = <FrameBase>getAncestor(top, "Frame");
|
||||
parentFrame = <FrameBase>getAncestor(parentFrame, "Frame");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user