question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`NavigationView` selection indicator sometimes stays in incorrect location

See original GitHub issue

Describe the bug

We noticed this problem in our ported version in Uno Platform (specifically https://github.com/unoplatform/uno/issues/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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gabbybilkacommented, Mar 20, 2023

@bpulliam Can you take a look?

1reaction
sjb-sjbcommented, 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…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove navigationview selection indicator place
Can someone suggest how to remove selection indicator from NavigationView of UWP. Below style remove indicator but still shows empty space at ...
Read more >
Swiftui list disable selection. items, id: \. Also there's an AD
Using the multiple selection from a list in SwiftUI ioS 14. swiftui-navigationlink. Nov 24, 2021 · NavigationView is one of the most important...
Read more >
Navigation drawer
Navigation drawers provide access to destinations and app functionality, such as switching accounts. They can either be permanently on-screen or controlled ...
Read more >
User guide
Select the weather tab a marker appears on the on the chart where you want to find out the weather conditions. To explore...
Read more >
UIColor func body (content: Content) -> some View { content ...
A navigation view style represented by a view stack that only shows a ... When an item in the sidebar is selected, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found