Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue-Warn when using chips with array of objects #2102

Open
bhoriuchi opened this issue Jul 28, 2019 · 0 comments
Open

Vue-Warn when using chips with array of objects #2102

bhoriuchi opened this issue Jul 28, 2019 · 0 comments

Comments

@bhoriuchi
Copy link

bhoriuchi commented Jul 28, 2019

Steps to reproduce

<template>
  <div>
    <md-chips v-model="chips" md-placeholder="Add chip...">
      <template slot="md-chip" slot-scope="{ chip }">
        {{ chip.name }}
      </template>
    </md-chips>
  </div>
</template>

<script>
export default {
  data () {
    return {
      chips: [
        {id: 'asdfghjkl', name: 'foo'},
        {id: 'lkjhgfdsa', name: 'bar'}
      ]
    }
  }
}
</script>

Which browser?

Mac OSX 10.13.6
Chrome 75
Vue 2.5.2
Vue-material: 1.0.0-beta-11

What is expected?

display chips without warning

What is actually happening?

Warn in dev console. Chips display correctly

vue.esm.js?efeb:628 [Vue warn]: Avoid using non-primitive value as key, use string/number value instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant