I have a Test component that uses SfMultiSelect directly and it works fine
Yet I want to have a wrapper component around SfMultiSelect, and from Test component I am passing the neccessary props.
All the values are correctly received inside the component, and when I debug SfMultiselect @ref, it shows the Values correctly in the object, however, the input doesn't show selected values, even if I call state has changed method. It doesn't change even if I add the values again inside OnAfterRender or OnParametersSet. Same goes if I change value parameter for bind-value.
Wrapper in itself is nothing smart for now:
@typeparam TItem
@typeparam TValue
Value="DefaultValues"
DataSource="@Data"
TValue="IList"
TItem="TItem"
Placeholder="@Placeholder">
TItem="TItem"
TValue="IList"
OnValueSelect="@SelectItem"
OnValueRemove="@RemoveItem"
Cleared="@ClearItems"
>
@code{
[Parameter, EditorRequired]
public string OptionDisplay { get; set; } = default!;
[Parameter, EditorRequired]
public string OptionValue { get; set; } = default!;
[Parameter, EditorRequired]
public IList Data { get; set; } = default!;
[Parameter]
public IList DefaultValues { get; set; } = default!;
[Parameter]
public string Placeholder { get; set; } = "";
private SfMultiSelect, TItem> mulObj;
}