Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search function isn't working properly #1796

Open
BadPericles opened this issue Sep 5, 2023 · 0 comments
Open

Search function isn't working properly #1796

BadPericles opened this issue Sep 5, 2023 · 0 comments
Labels

Comments

@BadPericles
Copy link

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">


  • <button :disabled="!hasPrevPage" @click.prevent="offset -= limit">Anterior
    <button :disabled="!hasNextPage" @click.prevent="offset += limit">Próxima

  • 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

    @BadPericles BadPericles added the bug label Sep 5, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant