CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.

Home Page:https://mudextensions.codebeam.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NoWrap Parameter does not correctly truncate values in MudSelectExtended

sean-mcl opened this issue · comments

Description:

When setting NoWrap to true, I expect the values to be correctly truncated and the control to maintain its width. However, this does not seem to be happening. Below are the parameters I am using:

<MudSelectExtended 
    ItemCollection="Items" 
    T="SelectItem" 
    NoWrap="true" 
    MultiSelection="true" 
    Clearable="true"
    Label="DataSources" 
    Placeholder="DataSources" 
    SelectedValues="SelectedItems" 
    SelectedValuesChanged="SetSelectedValues" 
    SearchBoxVariant="Variant.Text" 
    Disabled="!Items.Any()"
    SearchFunc="@((item, s) => item.Label?.Contains(s, StringComparison.OrdinalIgnoreCase) ?? false)" 
    SearchBox="true" 
    SearchBoxAutoFocus="true" 
    SearchBoxClearable="true"
/>
 public record SelectItem
 {
     public string Label { get; set; }

     public object Value { get; set; }

     /// <inheritdoc />
     public override string ToString()
     {
         return Label;
     }
 }

Expected Behavior:

When NoWrap is set to true:

  • The values should be correctly truncated.
  • The control should maintain its width.

Actual Behavior:

  • The values are not truncated as expected.
  • The control width does not remain consistent.

image

Steps to Reproduce:

  1. Use the MudSelectExtended component with the parameters provided above.
  2. Set NoWrap to true.
  3. Observe the behavior of the control and the values displayed.

Environment:

  • Version: 7.0.0-rc.1
  • Browser Microsoft Edge