vanillaSelectBox
vanillaSelectBox copied to clipboard
setValue('all') gives error when using with remote feature
I am using remote feature to retrieve options contents from database and I would like to show the vanillaSelectBox with all items selected.
After creating the component, if I call setValue('all'), I receive the following error
Cannot read properties of undefined (reading 'querySelectorAll') at vanillaSelectBox.setValue (vanillaSelectBox.js:1203:34)
Could you post an example of using setValue('all') using remote feature ?