diff --git a/src/Core/Components/List/FluentSelect.razor.cs b/src/Core/Components/List/FluentSelect.razor.cs index c7dd201d74..1d79febccd 100644 --- a/src/Core/Components/List/FluentSelect.razor.cs +++ b/src/Core/Components/List/FluentSelect.razor.cs @@ -9,7 +9,7 @@ public partial class FluentSelect : ListComponentBase where TO /// protected virtual MarkupString InlineStyleValue => new InlineStyleBuilder() .AddStyle($"#{Id}::part(listbox)", "max-height", Height, !string.IsNullOrWhiteSpace(Height)) - .AddStyle($"#{Id}::part(listbox)", "height", Height, !string.IsNullOrWhiteSpace(Height)) + .AddStyle($"#{Id}::part(listbox)", "height", "fit-content", !string.IsNullOrWhiteSpace(Height)) .AddStyle($"#{Id}::part(listbox)", "z-index", ZIndex.SelectPopup.ToString()) .AddStyle($"#{Id}::part(selected-value)", "white-space", "nowrap") .AddStyle($"#{Id}::part(selected-value)", "overflow", "hidden")