vanillaSelectBox icon indicating copy to clipboard operation
vanillaSelectBox copied to clipboard

Options selected in SELECT tag appear in dropdown list without being initialized in VanillaSelectBox

Open celtic34fr opened this issue 2 years ago • 0 comments

I am using VanillaSelectBox in my project for its convenience and the controls offered, but I have a problem.

When I initialize a list with the SELECT tag with the options selected in base, they do appear in the VanillaSelectBox dropdown list after initialization, but are not saved like when I select manually. So, being limited to 3 choices, even if I have already made a selection, I can still choose 3 options instead of 2. I found a workaround to retrieve all selected values ​​from the SELECT tag and initialize with an array of values ​​that I pass to VanillaSelectBox via the setValues() method.

This is not very clean at the programming level, and requires additional work to compensate for the lack in VanillaSelectBox. It does half the job presenting the selections in the dropdown, I don't think it would be too complex to fix this feature, i hope.

celtic34fr avatar Jun 27 '22 09:06 celtic34fr