diff --git a/src/Core/Components/List/FluentAutocomplete.razor b/src/Core/Components/List/FluentAutocomplete.razor index 7b1503885e..b2f164a9be 100644 --- a/src/Core/Components/List/FluentAutocomplete.razor +++ b/src/Core/Components/List/FluentAutocomplete.razor @@ -22,7 +22,7 @@ ReadOnly="@ReadOnly" Label="@Label" LabelTemplate="@LabelTemplate" - Placeholder="@(SelectedOptions?.Any() is false ? Placeholder : string.Empty)" + Placeholder="@(SelectedOptions is null || SelectedOptions?.Any() is false ? Placeholder : null)" aria-expanded="@(IsMultiSelectOpened ? "true" : "false")" aria-controls="@(IsMultiSelectOpened ? IdPopup : string.Empty)" aria-label="@GetAutocompleteAriaLabel()" diff --git a/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html b/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html index edb9ef5c9f..f55d798b6c 100644 --- a/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html +++ b/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html @@ -1,6 +1,6 @@
-