Skip to content

ComboBox sends only the last element to FieldChanged when MultiSelection=true #543

Closed

Description

@iamtechnyx

As @mckaragoz and I discussed on discord, the combobox passes only the last item into FieldChanged, as this method is called within SetValuesAsync of the MudBaseInput (see). I would consider this a bug and inconsistent with the core library, where the entire selection is passed to FieldChanged: https://try.mudblazor.com/snippet/cumzEgmpzlCHQSWe

An example of where this occurs within ComboBox is: https://github.com/CodeBeamOrg/CodeBeam.MudBlazor.Extensions/blob/dev/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor.cs#L1237

I'm open to discussion on this issue.

Activity

  1. added a commit that references this issue on Nov 3, 2026
    287bdba
  2. added a commit that references this issue on Nov 3, 2026
    3a71ee9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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