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

MudSelectExtended: Virtualize issue with ItemContent

Open jbartlettii opened this issue 11 months ago • 0 comments
trafficstars

#109 #322 Are both similar but look like they are more focused on the issues with rendering with multiselect content, there is an issue with ItemContent where the value is definitely bound, but not presented on initialization.

You can see below where the value is selected in the dropdown but is not filled out in the parent Select, selecting a different item will cause the presenter to work normally, but selecting the same value does nothing. Removing the virtualize option and setting the flag to false solves the issue completely.

image

<MudSelectExtended T="Asset" ItemCollection="_assets" ValuePresenter="ValuePresenter.ItemContent"
                   SearchBox="true" SearchFunc="SearchFunc" Required="true"
                   Placeholder="Assets" Label="Select Asset" Variant="Variant.Outlined"
                   Value="@Asset" ValueChanged="Callback"
                   Virtualize="true"
                   AnchorOrigin="Origin.BottomCenter">

Code above is what is being used, I'll try some of the workarounds used for the multiselection items to see if those help.

jbartlettii avatar Dec 02 '24 20:12 jbartlettii