Vue-multiselect: "List is empty" is shown before having a chance to type anything

Created on 11 Oct 2019  路  2Comments  路  Source: shentao/vue-multiselect

Hi and thanks for this fantastic library!

Reproduction Link

https://jsfiddle.net/vL5hc1pd/

Steps to reproduce

  1. Click in the "search or add" input

Expected behaviour

Nothing should be shown. Let users start typing

Actual behaviour

"List is empty" is shown.

Tried to disable it using "noOptions", but that doesn't seem to have any effect.

In this particular case, with taggable=true, I'd argue this message should never be shown, since we want to let users add a new tag when none already exists. Maybe add the taggable condition at
https://github.com/shentao/vue-multiselect/blob/52f9593d6951236c2671ff67bbfc05318e5d36f9/src/Multiselect.vue#L145
?

docs

Most helpful comment

I noticed there is an undocumented boolean prop showNoOptions. Just set this prop to false and your problem is gone.

All 2 comments

I noticed there is an undocumented boolean prop showNoOptions. Just set this prop to false and your problem is gone.

Hurray, that solved it! Thanks @holozaen !
I'll leave this issue open, to be considered by @shentao on adding that to docs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

katranci picture katranci  路  3Comments

dmitov picture dmitov  路  4Comments

MaxHalford picture MaxHalford  路  4Comments

stefanheimann picture stefanheimann  路  4Comments

hskrishna29 picture hskrishna29  路  3Comments