CodeBeam.MudBlazor.Extensions
CodeBeam.MudBlazor.Extensions copied to clipboard
MudSelectExtension
trafficstars
Hi, I have a strange issue with the Chip visualization. I see the Chips only when the dropdown is open:
then, they disappears when the drop is closed
(in the same page, if I copy/paste the example from your doc page, the one with complex items.. it works as expected)
I do not understand why I have this issue.
this is the razor code:
<MudSelectExtended Label="@localizer[Strings.Tournament]"
ValuePresenter="ValuePresenter.Chip"
ChipCloseable="true"
ChipSize="Size.Small"
ChipVariant="Variant.Text"
NoWrap="false"
AnchorOrigin="Origin.BottomCenter"
T="int"
MultiSelection="true"
@bind-SelectedValues="@TournamentIds"
@bind-SelectedValues:after="OnTournamentChanged">
@foreach (var tournament in Tournaments)
{
<MudSelectItemExtended T="int" Value="@tournament.TournamentId" Text="@tournament.Name" />
}
</MudSelectExtended>
where
List<TournamentModel> Tournaments = new List<TournamentModel>();
IEnumerable<int> TournamentIds = new HashSet<int>();
if I switch from Chip to Text, it works as expected.