CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

MudSelectExtension

Open Magic73 opened this issue 1 week ago • 1 comments
trafficstars

Hi, I have a strange issue with the Chip visualization. I see the Chips only when the dropdown is open:

Image

then, they disappears when the drop is closed

Image

(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.

Magic73 avatar Nov 09 '25 13:11 Magic73