brianvoe / slim-select

Slim advanced select dropdown
http://slimselectjs.com
MIT License
1.03k stars 195 forks source link

Multiselect with HTML data #536

Closed steven-bustos closed 5 months ago

steven-bustos commented 5 months ago

I just updated to v2.8.2 from v1.27, I used to use a multiple select with the innerHtml option, if I choose multiple options, those were displayed as selected with the HTML , now when I select multiple items from the list, I cannot see them as selected with the HTML but with the "text" attribute.

I also set the valuesUseText to false

https://codepen.io/Steven-Bustos/pen/MWROrZW

brianvoe commented 5 months ago

i cant put the html in the multiselect selected options.

steven-bustos commented 5 months ago

@brianvoe How? have you look the codepen? that's a simplified example of what I have in my project, the multiselect HTML is not set, it only show empty values:

image
steven-bustos commented 5 months ago

How? have you look the codepen? that's a simplified example of what I have in my project, the multiselect HTML is not set, it only show empty values:

How? have you look the codepen? that's a simplified example of what I have in my project, the multiselect HTML is not set, it only show empty values: image

brianvoe commented 5 months ago

set the text field to the value of just the text of your html. the multi select selected options will not use the html field it will use the text field fill out the text field.

steven-bustos commented 5 months ago

@brianvoe But how can I achieve that? I was using the v1.27 and can do this:

image

After updating it's impossible to do.

brianvoe commented 5 months ago

looks like its not in the new one. if you want to submit pr with tests let me know.