diff --git a/src/Core/Components/List/FluentAutocomplete.razor b/src/Core/Components/List/FluentAutocomplete.razor index 58f2205f09..129a6ef426 100644 --- a/src/Core/Components/List/FluentAutocomplete.razor +++ b/src/Core/Components/List/FluentAutocomplete.razor @@ -80,9 +80,8 @@ Style="cursor: pointer;" Slot="end" Title="Clear" + Focusable="true" @onfocus="@(e => { IsReachedMaxItems = false; IsMultiSelectOpened = false; })" - tabindex="0" - role="button" OnClick="@OnClearAsync" /> } } @@ -95,9 +94,8 @@ Style="cursor: pointer;" Slot="end" Title="Search" + Focusable="true" @onfocus="@(e => { IsReachedMaxItems = false; IsMultiSelectOpened = false; })" - tabindex="0" - role="button" OnClick="@OnDropDownExpandedAsync" /> } } diff --git a/src/Core/Components/List/ListComponentBase.razor.cs b/src/Core/Components/List/ListComponentBase.razor.cs index 9fa23b31eb..61573d0255 100644 --- a/src/Core/Components/List/ListComponentBase.razor.cs +++ b/src/Core/Components/List/ListComponentBase.razor.cs @@ -536,10 +536,7 @@ protected virtual async Task RaiseChangedEventsAsync() { if (SelectedOptionsChanged.HasDelegate) { - if (_selectedOptions.Count != 0) - { - await SelectedOptionsChanged.InvokeAsync(_selectedOptions); - } + await SelectedOptionsChanged.InvokeAsync(_selectedOptions); } } else diff --git a/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html b/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html index 437af7ddb8..edb9ef5c9f 100644 --- a/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html +++ b/tests/Core/List/FluentAutocompleteTests.FluentAutocomplete_AutofocusAttribute.verified.razor.html @@ -1,7 +1,7 @@
-