Open ilvalerione opened 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?
When use an object in V-MODEL instead a sample value (string, number) the component doesn't react.
To reproduce:
where
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?