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

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

Open Mr-Technician opened this issue 4 months ago • 0 comments
trafficstars

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.

Mr-Technician avatar Jun 25 '25 14:06 Mr-Technician