Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

setValue does not work properly with integer type of array #134

Open
agilasadi opened this issue Sep 11, 2019 · 0 comments
Open

setValue does not work properly with integer type of array #134

agilasadi opened this issue Sep 11, 2019 · 0 comments

Comments

@agilasadi
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant