Vue-material: [MdAutocomplete] cannot select by clicking an item

Created on 22 Aug 2018  路  5Comments  路  Source: vuematerial/vue-material

Steps to reproduce

  • click on the autocomplete input to open the autocomplete list
  • click on any item in the list (without typing anything)

Which browser?

Chrome Version 69.0.3497.42 (Official Build) beta (64-bit) on Windows

What is expected?

  • the item is selected and displayed in the autocomplete input

What is actually happening?

  • nothing is selected

Reproduction Link

https://codesandbox.io/s/q4nml15y6w

Most helpful comment

Hi man.
I founded this little trick for this bug on a closed issue.
Use the props v-on:md-opened="opened" calling a method opened, for example.
In this method:
opened () {
this.name += ' '
this.name = this.name.substring(0, this.name.length - 1)
},
the this.name it's the v-model variable.
In my case, this works.

All 5 comments

Hi man.
I founded this little trick for this bug on a closed issue.
Use the props v-on:md-opened="opened" calling a method opened, for example.
In this method:
opened () {
this.name += ' '
this.name = this.name.substring(0, this.name.length - 1)
},
the this.name it's the v-model variable.
In my case, this works.

@daopapp thanks for the tip!

This was fixed in #1765, however there has not been a release since this PR was merged.
Once 10.3 is released, it should address this issue. If you decide to checkout the dev branch, be sure to compile the dist folder as that does not yet have the change.

@jack-wi thanks, I'm not in a rush and I can wait until it's released. If you can take care of closing the issue when it's released I will test it out right away.

Duplicate of #1740

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zapping picture zapping  路  24Comments

praneetloke picture praneetloke  路  39Comments

GillesBodart picture GillesBodart  路  16Comments

kjhatis picture kjhatis  路  20Comments

DevEclipse picture DevEclipse  路  16Comments