-
Notifications
You must be signed in to change notification settings - Fork 461
Labels
closed:doneWork is finishedWork is finished
Description
🐛 Bug Report
Adding a FluentSelect with Multiple=true always makes a component that uses the default .listbox, which has position: absolute.
💻 Repro or Code Sample
https://www.fluentui-blazor.net/#multipleitemswithsel remove the surrounding div (or remove the height)
🤔 Expected Behavior
It behaves like a block element
😯 Current Behavior
It's a popup on a 0 height element.
💁 Possible Solution
<FluentSelect Id="@Id" Autofocus="true" Items="Items" @bind-SelectedOptions="@SelectedEnums" OptionText="@NameFunc" Multiple="true" Placeholder="@Label" Height="300px" Immediate="true"/>
@InlineStyleValue
@code {
private string Id = Identifier.NewId();
private MarkupString InlineStyleValue => new InlineStyleBuilder()
.AddStyle($"#{Id}::part(listbox)", "position", "relative").BuildMarkupString();
}I personally think this is a bug, but if it was intended as such, please add a Parameter to let us set the position.
Metadata
Metadata
Assignees
Labels
closed:doneWork is finishedWork is finished