Closed jonkristian closed 7 years ago
Using keys and enter seems to work, but not mousedown it seems.
Hello, I have the same issue. You problem in this line of code:
<li v-for="item in items" :class="activeClass($index)" @mousedown="hit" @mousemove="setActive($index)"
Vue 2 does not have $index variable defined, so you must use this syntax:
li v-for="(item, index) in items" :class="activeClass(index)" @mousedown="hit" @mousemove="setActive(index)"
Hello. I'm using Vue 2 and I get undefined for item in
onHit(item)
.Also pulling in your demo Typeahead.vue returns undefined.
My package.json: