Skip to content

Commit

Permalink
fix(autocomplete): Adjusted it so that removing search text back to n…
Browse files Browse the repository at this point in the history
…ull/empty string will reset autocomplete suggestions.
  • Loading branch information
LegendOfLynkle committed Feb 11, 2025
1 parent 023897e commit b806f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Radzen.Blazor/RadzenAutoComplete.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ async Task DebounceFilter()
var value = await JSRuntime.InvokeAsync<string>("Radzen.getInputValue", search);

value = $"{value}";

if (value.Length < MinLength)
if (value.Length < MinLength && !OpenOnFocus)
{
await JSRuntime.InvokeVoidAsync("Radzen.closePopup", PopupID);
return;
Expand Down

0 comments on commit b806f4c

Please sign in to comment.