ivkan/ts-select2

No selection shows "Undefined"

Firesphere opened this issue · 5 comments

On initialisation of a multi-select, the box shows "Undefined", until something is selected.

ivkan commented

Hello! There is a multi-select demo that uses version 0.2.4. What version ts-select2 are you using? Perhaps updating to latest version will help you, if not, please describe your use case in more detail.

The demo shows exactly my problem; remove the options from the multi-select in the demo:
image

So, my usecase is exactly that ;)

When nothing is selected in a multiple select, the text "undefined" shows.

Browser:
Firefox 109 and 110-b1

If I look at the source code, it shows the text "undefined", right after the <ul> tag, but before the first <li>

ivkan commented

Thanks for describing this issue, it should now be fixed in version 0.2.5. Updated demo. Seems like you got it fixed?

Awesome, thank you!