diff --git a/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml b/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml index 2bdeb35f30..9e011ef08d 100644 --- a/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml +++ b/examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml @@ -6227,6 +6227,12 @@ + + + + + + diff --git a/src/Core/Components/List/FluentAutocomplete.razor.cs b/src/Core/Components/List/FluentAutocomplete.razor.cs index bead1d74d3..1ecfc3fe13 100644 --- a/src/Core/Components/List/FluentAutocomplete.razor.cs +++ b/src/Core/Components/List/FluentAutocomplete.razor.cs @@ -706,6 +706,32 @@ private bool MustBeClosed() return false; } + + /// + public override void FocusAsync() + { + if (Multiple) + { + Element?.FocusAsync(); + } + else + { + OnDropDownExpandedAsync(); + } + } + + /// + public override void FocusAsync(bool preventScroll) + { + if (Multiple) + { + Element?.FocusAsync(preventScroll); + } + else + { + OnDropDownExpandedAsync(); + } + } } ///