Skip to content

Commit

Permalink
fix(v-autocomplete): fix index evaluation
Browse files Browse the repository at this point in the history
only applies highlighted class on index evaluation
  • Loading branch information
johnleider committed May 15, 2018
1 parent 053dba3 commit 34d96e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/VAutocomplete/VAutocomplete.js
Expand Up @@ -168,6 +168,8 @@ export default {
filteredItems (val) {
if (this.isAnyValueAllowed) return

this.setMenuIndex(-1)

this.$nextTick(() => {
this.setMenuIndex(val.length === 1 ? 0 : -1)
})
Expand Down

0 comments on commit 34d96e7

Please sign in to comment.