TinyNavigationHelper icon indicating copy to clipboard operation
TinyNavigationHelper copied to clipboard

Modal Page issue

Open ScarletKuro opened this issue 4 years ago • 0 comments

If you use _navigationHelper.OpenModalAsync(someview, true) then if you somehow close the modal page without _navigationHelper.CloseModalAsync() method then the NavigateToAsync on mainpage won't be possible, because the private NavigationPage? _modalNavigationPage in FormsNavigationHelper is not null. As you can see on example below I navigated back using the android back button. which caused this. This also means if you use NavigationHelper OpenModal method with withNavigation parameter you are forced to close the modal only using the NavigationHelper CloseModal method, otherwise your navigation will get broken. Example

Ideas: 1.Provide additional parameter in NavigateToAsync that will set internally _modalNavigationPage to null. 2.Somehow to check in modal navigation stack if modalNavigationPage doesn't exist anymore we skip it?

ScarletKuro avatar Apr 01 '21 15:04 ScarletKuro