vue-instant
vue-instant copied to clipboard
How to configure vue-instant to display suggestions that do not match the query?
I use the your wonderful component and everything in it is good, only when an array of "suggestions" comes from the back-end, vue-instant shows only those that strictly match the query.
That is, if I enter "Mosk" - I see "Moscow", and if I introduce "Moks" - then I will not see anything, although the answer from the server will come from "Moscow" and I passed it through the "suggestions" parameter.
How to make him withdraw everything that I give him?
Just create other block for the notify about it and show block when you get empty query result.
Like this:
<div id="app">
<label>Some label</label>
<vue-instant :suggestions="suggestions" [...other props...]></vue-instant>
<div v-if="!suggestions.length" class="empty-suggestions">Empty result</div>
</div>
Thanks for the answer. But that is not the question. I need the component to output all the results I received from the backend.