A Vue2 plugin for input content suggestions, support using keyboard to navigate and quick pick, it make use experience like search engine input element
I'm populating the passing a list of suggestions to the data prop which get set in an async function.
Basically, I have a component that watches search, hits the api, and sets the suggestions which get passed to your component. But your component doesn't update list in your component until you re-trigger a focus event.
The workaround I'm using right now is creating a component that extends yours and just calls this.focus() whenever data changes. And then of course using this in place of the v-suggest component.
I'm populating the passing a list of suggestions to the
data
prop which get set in an async function.Basically, I have a component that watches
search
, hits the api, and sets the suggestions which get passed to your component. But your component doesn't updatelist
in your component until you re-trigger afocus
event.Component that uses v-suggest
The workaround I'm using right now is creating a component that extends yours and just calls
this.focus()
wheneverdata
changes. And then of course using this in place of the v-suggest component.Workaround component
I think you can probably just add this to your
methods.js