Why does the Select
element only allow for a IEnumberable
to be binded?
#3840
lettuceDestroyer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying to bind a
List<T>
to theAntDesign.Select
element I get the error mesages:Why is that? Isn't it possible to
@bind-Value
a list? Since I get the data from a API and use DTOs it is not possible to change the data type of that property. Now I have to create a method which is binded to the formsOnFinishFailed
callback. This method then sets the properties of my DTO, validates the form again and submits it. This makes the code quite ugly and hard to understand.Beta Was this translation helpful? Give feedback.
All reactions