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

NavigationView selection indicator sometimes stays in incorrect location #6837

Closed
2 tasks done
MartinZikmund opened this issue Mar 16, 2022 · 10 comments · Fixed by #8776
Closed
2 tasks done

NavigationView selection indicator sometimes stays in incorrect location #6837

MartinZikmund opened this issue Mar 16, 2022 · 10 comments · Fixed by #8776
Assignees
Labels
area-NavigationView NavView control bug Something isn't working team-Controls Issue for the Controls team working on it

Comments

@MartinZikmund
Copy link
Contributor

MartinZikmund commented Mar 16, 2022

Describe the bug

We noticed this problem in our ported version in Uno Platform (specifically unoplatform/uno#5704). This problem occurs when NavigationView is in "minimal" mode and closes after item selection. In such case the selection indicator in some cases does not correctly move to the newly selected (and collapsed) item. It becomes even more visible for nested hierarchical items.

Steps to reproduce the bug

This is just one example of the behaviors that occur, there are others as well. Focus on the selection indicator on the edge of the GIF (sorry for the cutoff)

Animation

Expected behavior

The selection indicator should always show which parent is "selected"

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.0

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 11 (21H2): Build 22000

Additional context

No response

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Mar 16, 2022
@MartinZikmund
Copy link
Contributor Author

We have already fixed the problem in Uno Platform via unoplatform/uno#8272, so I can replicate the same fix here as well - please assign this to me 👍

@ojhad ojhad added bug Something isn't working area-NavigationView NavView control team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Mar 17, 2022
@ojhad
Copy link
Contributor

ojhad commented Mar 17, 2022

@MartinZikmund thanks for finding a fix! Assigned the issue to you.

@sjb-sjb
Copy link

sjb-sjb commented Mar 15, 2023

I see a similar problem in the current WindowsAppSDK. Is the fix going to be released?

@MartinZikmund
Copy link
Contributor Author

@sjb-sjb I think the fix is ready to be merged, just needs the approval stamp 👍

@sjb-sjb
Copy link

sjb-sjb commented Mar 15, 2023

@MartinZikmund thanks. So I guess it has been ready to go for 9 months then. I don’t know what the process is for getting this approved and included in the release…

@MartinZikmund
Copy link
Contributor Author

@SavoySchuler @gabbybilka @michael-hawker , can you please help get the PR approved?

@gabbybilka
Copy link
Member

@bpulliam Can you take a look?

@ojhad
Copy link
Contributor

ojhad commented Mar 24, 2023

I am unable to repro this issue in the new WinUI 3 Gallery. There were fixes made to the selection indicator behavior which may have been what fixed the scenario in question.

@sjb-sjb Would you be able to provide some more info about how the problem is manifesting for you? This potentially could help us make a more targeted fix.

@sjb-sjb
Copy link

sjb-sjb commented Mar 25, 2023

On recent versions of WindowsAppSDK, I have intermittent cases where top navigation seems to occur twice. In my case the nav view is being used to navigate pages on a Frame. In some cases selecting a new top item results in the old page leaving, coming back, then leaving again. I do not have details or a repro because it is intermittent. It seems likely to me that this is a problem with event timing or something along those lines rather than the selection indicator itself. Suggest we take the fix provided.

@ojhad
Copy link
Contributor

ojhad commented Mar 30, 2023

This issue does sound unrelated to the selection indicator animation. It would be helpful if you open a separate bug for this, so we don't confuse the two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control bug Something isn't working team-Controls Issue for the Controls team working on it
Projects
None yet
5 participants