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