Hello,
in the code below admin_status comes as Option and AdminType impl Display and is a simple enum
I'm sure the value is one of the options because it is printed on the console
but the select box does not set itself on the corresponding option, even though everything is turned into String
<Select
value=admin_status.map(|f| f.to_string()).unwrap_or(String::new())
placeholder="Status"
name="admin_status"
>
<SelectContent label="Statuts">
{AdminStatus::ALL
.map(|k| {
view! {
<SelectItem value=k.to_string()>{k.to_string()}</SelectItem>
}
})
.collect_view()}
</SelectContent>
</Select>
Hello,
in the code below admin_status comes as Option and AdminType impl Display and is a simple enum
I'm sure the value is one of the options because it is printed on the console
but the select box does not set itself on the corresponding option, even though everything is turned into String