RadzenDropDown with AllowFiltering and single selection should close on ENTER

This commit is contained in:
Vladimir Enchev
2026-01-15 09:21:08 +02:00
parent 5057fb1cc8
commit 61b32d6490
2 changed files with 2 additions and 5 deletions

View File

@@ -740,10 +740,7 @@ namespace Radzen
{
if (!Multiple && (!isFilter || key != "Space"))
{
if (!Multiple && !isFilter)
{
await ClosePopup(key);
}
await ClosePopup(key);
}
}
}

View File

@@ -4,7 +4,7 @@
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.Center" Gap="0.5rem" class="rz-p-sm-12">
<RadzenLabel Text="Select Value" Component="DropDownClear" />
<RadzenDropDown @bind-Value=@value Data=@products TextProperty="@nameof(Product.ProductName)" ValueProperty="ProductID" AllowClear=true Placeholder="Select product" Style="width: 100%; max-width: 400px;" Name="DropDownClear" />
<RadzenDropDown AllowFiltering=true @bind-Value=@value Data=@products TextProperty="@nameof(Product.ProductName)" ValueProperty="ProductID" AllowClear=true Placeholder="Select product" Style="width: 100%; max-width: 400px;" Name="DropDownClear" />
</RadzenStack>
@code {