NoWrap Parameter does not correctly truncate values in MudSelectExtended
sean-mcl opened this issue · comments
Sean McLeish commented
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.
Steps to Reproduce:
- Use the
MudSelectExtended
component with the parameters provided above. - Set
NoWrap
to true. - Observe the behavior of the control and the values displayed.
Environment:
- Version: 7.0.0-rc.1
- Browser Microsoft Edge