wffranco / vue-strap

Bootstrap components built with Vue.js
http://wffranco.github.io/vue-strap/
MIT License
338 stars 133 forks source link

$index is not defined - Vue.js v2.4.2 #149

Open EdgarXolop opened 7 years ago

EdgarXolop commented 7 years ago

Using Vue.js v2.4.2 When using typeahead component in browser mode and return this error in the browser's console '$index is not defined'

I resolved it, modifing the line 9572 from the file vue-strap.js

v-for=\"item in items\" to v-for=\"(item,$index) in items\"

Warning : the template of the typeahead result return a blank template, add a custom template