This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Question]: Nav does not update the SelectedKey before firing OnSelect #337
Labels
Component: Nav
👋 needs author feedback
Waiting on a response from the author
❔question
Issue is a question that requires an answer, not changes to code.
Milestone
Describe the bug
When clicking on a nav item, the SelectedKey property is not being updated until after the event fires. So, it always seems to be a click "behind". SelectedKey is updated properly before OnChange is fired, however.
To Reproduce
Steps to reproduce the behavior:
Notify("SelectedKey: " & Self.SelectedKey
to theOnSelect
behavior propertyExpected behavior
A notification pops up, properly reflecting the item clicked, and then again with the second click
Actual behavior
The first notification shows a blank SelectedKey, and the second notification shows the SelectedKey for the first item clicked.
The text was updated successfully, but these errors were encountered: