MobileBlazorBindings icon indicating copy to clipboard operation
MobileBlazorBindings copied to clipboard

Cannot navigate back after nested Shell navigations

Open Dreamescaper opened this issue 4 years ago • 6 comments
trafficstars

If I navigate to some page using ShellNavigationManager, and then navigate again to some third page, I cannot go back from that page - back button has no effect.

Example in ControlGallery: Skia Playground -> Skia Canvas Paths.

Attempt to execute Shell.Current.Navigation.PopAsync leads to an error (sorry for screenshot):

Error

image

(Issue reproduces on older commits as well, so not related to #298 )

Dreamescaper avatar Jan 17 '21 23:01 Dreamescaper

Seems like the cause of the issue is Xamarin.Forms upgrade - I cannot reproduce on older commits.

Dreamescaper avatar Jan 17 '21 23:01 Dreamescaper

Probably should be fixed by this PR: https://github.com/xamarin/Xamarin.Forms/pull/13330

So probably simply need to wait for Xamarin.Forms update.

Dreamescaper avatar Jan 18 '21 00:01 Dreamescaper

Tested on latest Xamarin.Forms nightly - issue does not reproduce there.

Dreamescaper avatar Jan 18 '21 11:01 Dreamescaper

So we still need another bug fix from Xamarin.Forms possibly (if so, is there a bug filed on it)? Or do we need to investigate further to see if MBB is doing something wrong?

Eilon avatar Jan 18 '21 18:01 Eilon

Sorry, my bad, I've lost "not" in the previous comment :).

I don't think anything is required (apart from updating XF when it releases).

Dreamescaper avatar Jan 18 '21 19:01 Dreamescaper

Got it! So we'll hold onto this bug until we can pull in an update.

Eilon avatar Jan 18 '21 20:01 Eilon