Replies: 1 comment 2 replies
-
It did not worked for me either. I handled this by listening to navigation events and then notifying to a service that will be responsible to let the nav know what item in the menu should be marked as selected. The following snippet might be helpful:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having trouble with getting the NavMenu to select the current item unless I click on the item. If I link to a page that matches a NavItem's Href it does not select it.
Based on the v3 source code for the NavMenu it should support this out of the box. Am I missing something or do I need to hook this up to make it work.
The source code I am looking at is here: https://github.com/microsoft/fluentui-blazor/blob/f6ef9cd6398ad7bbf5a526e15a5669dd5b2b1617/src/Core/Components/NavMenu/FluentNavMenu.razor.cs
thank you
Michael
Beta Was this translation helpful? Give feedback.
All reactions