Skip to content

Combobox will skip at least one item if arrowdown/up in vue3 #369

Closed
@APshZ

Description

@APshZ

Background

While using the example from https://preline.co/docs/combobox.html and put it under the vue component, find that after input value in the input field, the keydown event will trigger more than once
from Argentina step to China instead of Brazil
image
The dropdown in example also have same issue for skipping items.
https://stackblitz.com/edit/preline-v2-vue-and-vue-router?file=src%2Frouter%2Findex.ts,README.md

so i debug the prelinejs for combobox and find that every time route to the component which contains combobox, the autoinit function triggered and duplicate the combobox in window.$hsComboBoxCollection
image
which will lead to the more item count being skipped

Browser

Chrome, Edge

wait for fix or is it my code problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions