Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnNavigating wrong target when tapping the same tab #25599

Open
lszl84 opened this issue Oct 30, 2024 · 1 comment · May be fixed by #25749 or #27197
Open

OnNavigating wrong target when tapping the same tab #25599

lszl84 opened this issue Oct 30, 2024 · 1 comment · May be fixed by #25749 or #27197
Assignees
Labels
area-navigation NavigationPage partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@lszl84
Copy link

lszl84 commented Oct 30, 2024

Description

Let's say we have a tab bar with MainPage and SettingsPage. We are on MainPage and pushed DetailsPage on the navigation stack. We tap the MainPage tab again and we're back to MainPage from DetailsPage.

This is ok, but the problem is we don't get any indication of that in the AppShell's OnNavigating event, so we cannot prevent this with e.Cancel (e.g. when the user has some unsaved changes on the DetailsPage or something):

2024-10-30 12:44:17.996224+0100 BeginnersTask[50334:1782255] --- Navigating from //MainPage/DetailPage to //MainPage/DetailPage
2024-10-30 12:44:18.559204+0100 BeginnersTask[50334:1782255] --- Navigated from //MainPage/DetailPage to //MainPage

The Current and Target properties are the same in OnNavigating, but in OnNavigated the Previous and Current are different.

Code: TabBarNavigation from this repo: https://github.com/lszl84/maui-scroll-bug.git

Steps to Reproduce

  1. Tap Home
  2. Add a task
  3. Tap on the task - the details open
  4. Tap Home again - we are back home, but no indication of that in the OnNavigating event of the AppShell.

Link to public reproduction project repository

https://github.com/lszl84/maui-scroll-bug.git

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@lszl84 lszl84 added the t/bug Something isn't working label Oct 30, 2024
@jsuarezruiz jsuarezruiz added the area-navigation NavigationPage label Oct 30, 2024
@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Nov 1, 2024
@ninachen03
Copy link

This issue has been verified using Visual Studio 17.12.0 Preview 5(9.0.0-rc.2.24503.2 & 8.0.92 & 8.0.3). Can repro this issue at iOS platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-navigation NavigationPage partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: Todo
6 participants