Skip to content

MudSelectExtension #566

@Magic73

Description

@Magic73

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions