#Multiselect value turn to list
2 messages · Page 1 of 1 (latest)
You should already be getting an array of strings for value. Check the type of value: console.log(typeof value, Array.isArray(value))
2 messages · Page 1 of 1 (latest)
Hello I have a multiselect component that has some category names as data (just strings) and i use value and onChange to set the value state. The strings are just concatenated one after the other and I was wandering how i can easily turn the value into a list of the strings. Thanks in advance!
You should already be getting an array of strings for value. Check the type of value: console.log(typeof value, Array.isArray(value))