Mobius1/Selectr

setValue does not work properly with integer type of array

Opened this issue · 0 comments

When the array elements are integers such as [1,2,3,4] which is still a javascript array, the setValue will not work. In that case, I had to manually map it as myArray.map(String) before using.

I would also appreciate being able to set selected directly into the option while looping through it in the HTML, because the value is often has a different key name than the package is offering, so in that case I also have to convert my data to something that fits well with package if I would like to set data through javaScript.