We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d064033 commit 70a8f4aCopy full SHA for 70a8f4a
src/BlazorUI/Bit.BlazorUI/Components/Navs/Nav/BitNav.razor.cs
@@ -753,7 +753,7 @@ internal bool GetItemExpanded(TItem item)
753
return _itemExpandStates[item];
754
}
755
756
- internal async Task SetSelectedItem(TItem item)
+ internal async Task SetSelectedItem(TItem? item)
757
{
758
if (item == SelectedItem && Reselectable is false) return;
759
@@ -887,7 +887,7 @@ private void SetSelectedItemByCurrentUrl()
887
var currentItem = Flatten(_items).FirstOrDefault(item => GetUrl(item) == currentUrl
888
|| (GetAdditionalUrls(item)?.Contains(currentUrl) ?? false));
889
890
- _ = AssignSelectedItem(currentItem);
+ _ = SetSelectedItem(currentItem);
891
892
893
private void SetIsExpanded(TItem item, bool value)
0 commit comments