Skip to content

Commit

Permalink
fix Combobox z-index stack order issue (#1189)
Browse files Browse the repository at this point in the history
* fix Combobox z-index stack order issue

* fix Combobox z-index stack order issue

---------

Co-authored-by: Vincent Baaij <[email protected]>
  • Loading branch information
dromerolovo and vnbaaij authored Dec 23, 2023
1 parent 353e108 commit ee5c9c4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Core/Components/List/FluentCombobox.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
@inherits ListComponentBase<TOption>
@typeparam TOption

@if (!String.IsNullOrEmpty(Height))
{
<style>
@($"#{Id}::part(listbox) {{ max-height: {Height}; z-index: {ZIndex.ComboboxPopup} }}")
</style>
}
<style>
@($"#{Id}::part(listbox) {{ {(string.IsNullOrEmpty(Height) ? null : $"max-height: {Height};")} z-index: {ZIndex.ComboboxPopup} }}")
</style>

<CascadingValue Value=@_internalListContext Name="ListContext" TValue="InternalListContext<TOption>" IsFixed=true>
<FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" Required="@Required" />
Expand Down

0 comments on commit ee5c9c4

Please sign in to comment.