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

Setting Shell.CurrentItem does not trigger the OnNavigating event (only OnNavigated) #26714

Open
lszl84 opened this issue Dec 18, 2024 · 1 comment
Labels
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 Dec 18, 2024

Description

Navigate to a tab page by setting Shell.CurrentItem -- the OnNavigated event is not triggered.

Not sure if this is expected behavior (because setting the property cannot be cancelled?). If so, the CurrentItem documentation should be updated at least.

Steps to Reproduce

  1. Clone https://github.com/lszl84/maui-scroll-bug.git
  2. Run TabBarNavigation-FromCode project
  3. From the Settings tab click "Set CurrentItem"
  4. Observe the logs

Link to public reproduction project repository

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

Version with bug

8.0.83 SR8.3

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

@lszl84 lszl84 added the t/bug Something isn't working label Dec 18, 2024
@Ying-6
Copy link

Ying-6 commented Dec 19, 2024

I can repro this issue at iOS platform on the latest 17.13 preview 2 (8.0.83 & 8.0.82).

@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/iOS 🍎 labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants