alexurquhart / vue-bootstrap-typeahead

An autocomplete/typeahead component for Vue 2 and Bootstrap 4
https://alexurquhart.github.io/vue-bootstrap-typeahead/
MIT License
206 stars 157 forks source link

Default :data is an empty array #28

Open yprodev opened 5 years ago

yprodev commented 5 years ago

Could you, please, help me to resolve the next situation? I've found out that this typeahead wants data array to be filled with information. In my case, my application cannot guarantee the presents of data in the array. So, could you, please, find out the way to improve the typeahead to make it possible not to throw an error if there is no data in the array.

<typeahead :data="dataArray" />  

data: () => ({  
    dataArray: []  
})  

Hope, this will make sense for you.

mattzollinhofer commented 4 years ago

I'm not sure this is still an issue. Can you confirm?