darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

Preselect (initial value) example #200

Closed demiro closed 4 years ago

demiro commented 4 years ago

When checking the storybook for examples I found this one, that has an initial value...

what it does it only sets the value of the query (in the input box) and does not select (highlight the item from the list).

How do we actually set (and highlight) a initial item (and not just the query text) ?

darrenjennings commented 4 years ago

@demiro I need to remove the stories as they haven't been updated in a while. For example, initialValue has been deprecated and now v-model is how you should use initial values. does this help you? there is currently no default behavior to trigger a "highlight" after the rendering of the suggestion list.