Skip to content

How do I set the type of the select value to be string | string[] for multi instead of {label:string,value:string} | {label:string,value:string}[]? #251

Closed Answered by csandman
c-semaan asked this question in Q&A
Discussion options

You must be logged in to vote

This discussion has been brought up a few times, and there are some past examples I've given for how to extract the value(s) from the selected option(s). Here is the most in depth discussion on the topic: #175

Read through that first and let me know if it doesn't answer your question. Overall, I personally recommend removing the labels on submit, as the boilerplate for removing them in a generic way can get very large (especially in TypeScript).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by c-semaan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants