wffranco / vue-strap

Bootstrap components built with Vue.js
http://wffranco.github.io/vue-strap/
MIT License
338 stars 133 forks source link

v-select doesn't update using object #174

Open ilvalerione opened 6 years ago

ilvalerione commented 6 years ago

When use an object in V-MODEL instead a sample value (string, number) the component doesn't react.

To reproduce:

<v-select v-model="test" :options="optionsTest"></v-select>

where

data(){
   return {
      test: {user: 'Hello 1'},
      optionsTest: [
            {value: {user: 'Hello 0'}, label: 'Zero'},
            {value: {user: 'Hello 1'}, label: 'One'},
            {value: {user: 'Hello 2'}, label: 'Two'},
      ]
   };
}

It should show "One" label selected but select still empty.

Could be something in the watch property of the component that doesn't work well with object?