Within this scenario, two separate data arrays are present for fruits and animals. Initially, when the user engages with the v-autocomplete
component, the search bar will display a list of fruit data: ["apple","banana","kiwi"]
. Upon entering text into the search bar, the fruit data will disappear and be replaced by animal data fetched from an API. Despite the presence of two distinct data arrays, only one item can be added to the Vuetify autocomplete at a time.
<v-autocomplete
v-model="select"
:items="fruits"
:search-input.sync="search">
Considering this limitation, is there any possible solution to dynamically change the items array based on the user's input in the input field?