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

Fix for unable to select a tab after backing out of a page and returning. #25011

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

BagavathiPerumal
Copy link
Contributor

Root cause

The issue was due the IsSelected property of the NavigationView Item is not updated properly after navigating back from the page.

Description of Issue Fix

The fix involves resetting the IsSelected property for all NavigationView items in the Disconnect Handler, mapping the IsSelected property of the CurrentPage, and updating the IsSelected property of the NavigationViewItem by using OnPropertyChanged, similarly updating the Background when the IsSelected value is changed.

Tested the behavior in the following platforms.

  • Windows
  • Android
  • iOS
  • Mac

Issues Fixed

Fixes #24741

Output

Before Issue Fix After Issue Fix
24741-BeforeFix.mp4
24741-AfterFix.mp4

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 30, 2024
Copy link
Contributor

Hey there @BagavathiPerumal! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community ✨ Community Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to select tab after backing out of page and returning
1 participant