From 2be6b57a2f78eb2ed84d549e7235d917b23bd6f3 Mon Sep 17 00:00:00 2001 From: Mladen Macanovic Date: Sat, 7 Oct 2023 15:11:28 +0200 Subject: [PATCH] Fix DropdownToggleSize parameter name usage --- Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor | 4 ++-- Source/Extensions/Blazorise.Components/DropdownList.razor | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor b/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor index 0212b998ab..af31db46a1 100644 --- a/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor +++ b/Demos/Blazorise.Demo/Pages/Tests/DropdownListPage.razor @@ -15,10 +15,10 @@ Data="@Countries" TextField="@(( item ) => item.Name)" ValueField="@((item) => item.Iso)" - @bind-SelectedValue="@selectedDropValue" + @bind-SelectedValue="@selectedDropValue" Color="Color.Primary" MaxMenuHeight="200px" - Size="Size.Large"> + DropdownToggleSize="Size.Large"> Select item diff --git a/Source/Extensions/Blazorise.Components/DropdownList.razor b/Source/Extensions/Blazorise.Components/DropdownList.razor index 4b788fd60b..c8849e31e0 100644 --- a/Source/Extensions/Blazorise.Components/DropdownList.razor +++ b/Source/Extensions/Blazorise.Components/DropdownList.razor @@ -29,8 +29,8 @@ var value = ValueField != null ? ValueField.Invoke( item ) : default; @text + ShowCheckbox="@(SelectionMode == DropdownListSelectionMode.Checkbox)" + Checked="IsSelected(value)" + CheckedChanged="@((isChecked) => HandleDropdownItemChecked(isChecked, value))">@text }; } \ No newline at end of file