-
Notifications
You must be signed in to change notification settings - Fork 43
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
[any-plat][NavView] deselecting item by selecting another leave the former in "Selected" state #107
Comments
@jeromelaban So far I am unable to figure this one out, especially as it even happens on UWP too. Weirdly enough, using similar styles in a blank app I cannot reproduce it. Luckily the workaround works, so it is not a blocker. |
The reason why the default style works, is that there is no distinction between selected vs normal state other than the "SelectionIndicator" that is managed by the NavView (the parent, not NVItem). Here is the PR containing the fix: microsoft/microsoft-ui-xaml#2625 I would assume we need to port that into uno as well. |
@Xiaoy312 that is curious as I ported NavView based on the current version around December 2020, so these changes should already be included. Can you please compare the relevant changes with our code to see if I didn't miss something somewhere? Or maybe some part of the style is different? |
note
Cant seem to reproduce the issue anymore, despite going back to the older commit. |
Current behavior
Deselecting item by selecting another leave the former in "Selected" state:
Expected behavior
The deselected item should go back to "Normal" or "Checked" state
How to reproduce it (as minimally and precisely as possible)
Checkout
master
Comment out
App.AddNavigationItems.NavViewItemVisualStateFix
methodLaunch the app on any platform
Click on different navigation items
Environment
Nuget Package: Uno.UI
Package Version(s): 3.5.0-dev.256
Affected platform(s):
Visual Studio:
Relevant plugins: n/a
Anything else we need to know?
Current workaround is to force reset the visual state when
IsSelected
becomes false.The text was updated successfully, but these errors were encountered: