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

v-select doesn't update using object #174

Open
ilvalerione opened this issue Apr 17, 2018 · 0 comments
Open

v-select doesn't update using object #174

ilvalerione opened this issue Apr 17, 2018 · 0 comments

Comments

@ilvalerione
Copy link

ilvalerione commented Apr 17, 2018

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?

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