sagalbot / vue-select

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.
https://vue-select.org
MIT License
4.65k stars 1.34k forks source link

Search function isn't working properly #1796

Open BadPericles opened 1 year ago

BadPericles commented 1 year ago

Describe the bug At first, everything works fine until I search my option and clicking it.

<v-select class="vselect" v-model="filtro.orgao_origem_id" id="selectOrgaoOrigem" :options="paginated" :reduce="nome => nome.id" label="nome" placeholder="Todos" :filterable="false" @search="onSearch">

When I select an option without searching and when I select by using the pagination buttons, it works fine. But when I use the search bar to find an option and I select it, the label show me the ID.

Expected behavior: It should show me the 'nome (name, translate)' at the label, as it shows me when I don't use the search function.

Screenshots:

Captura de tela de 2023-09-05 15-13-52

This is a node example of paginated

Captura de tela de 2023-09-05 15-15-09

Captura de tela de 2023-09-05 15-15-19

This is when I don't use the search function

Captura de tela de 2023-09-05 15-19-26

Captura de tela de 2023-09-05 15-16-01

This is when I use the search function

Desktop:

OS: all Browser: all Version: latest 3