mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
RadzenDropDown with AllowFiltering and single selection should close on ENTER
This commit is contained in:
@@ -740,10 +740,7 @@ namespace Radzen
|
||||
{
|
||||
if (!Multiple && (!isFilter || key != "Space"))
|
||||
{
|
||||
if (!Multiple && !isFilter)
|
||||
{
|
||||
await ClosePopup(key);
|
||||
}
|
||||
await ClosePopup(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user