Vue-material: [md-autocomplete] Avoid using non-primitive value as key, use string/number value instead.

Created on 29 Aug 2017  路  3Comments  路  Source: vuematerial/vue-material

Hello,

i have an error when i use md-autocomplete and passing an array of object to the filter-list property of md-autocomplete

<md-autocomplete :min-chars="3" v-model="searchAgenciesQuery" :list="agencies" :filter-list="filteredAgencies"></md-autocomplete>

Avoid using non-primitive value as key, use string/number value instead.

It will be fixed to be less restrictive ? Or we have to be pass string key of our object we use ?

Thank you

Most helpful comment

@zapping Warn messages only show in development mode. The minified one is production mode.

All 3 comments

oups , similar to #930

It seems a strange issue. This pen, https://codepen.io/zapping/pen/GmVapv , has a working component of autocomplete. In the settings if you replace the vuejs file with https://unpkg.com/vue/dist/vue.js you get the error mentioned above. But if you use https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.min.js it works.

But both the js file has the same version. But one is minified and the other is not.

@zapping Warn messages only show in development mode. The minified one is production mode.

Was this page helpful?
0 / 5 - 0 ratings