Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Fixed bug where the selected value is not displayed (#278)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Shemmeld <[email protected]>
  • Loading branch information
Ben Shemmeld and benshemmeld authored Jul 15, 2022
1 parent 9d5f033 commit 90583f9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Blazored.Typeahead/BlazoredTypeahead.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
}

protected override void OnParametersSet()
{
Initialize();
}

private void Initialize()
{
SearchText = "";
Expand Down Expand Up @@ -240,7 +245,7 @@ private async Task HandleKeydown(KeyboardEventArgs args)
{
await ResetControl();
}

}

private async Task HandleKeyup(KeyboardEventArgs args)
Expand Down Expand Up @@ -403,7 +408,7 @@ private async Task HookOutsideClick()
private async Task SelectResult(TItem item)
{
var value = ConvertMethod(item);

if (IsMultiselect)
{
var valueList = Values ?? new List<TValue>();
Expand Down

0 comments on commit 90583f9

Please sign in to comment.