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

4.0.0-beta.6 vue-select.es.js:268 [vue-select warn]: Label key "option.label" does not exist in options object {}. #1848

Open
bombkiml opened this issue Sep 9, 2024 · 1 comment
Labels

Comments

@bombkiml
Copy link

bombkiml commented Sep 9, 2024

  • Vue Version: 3.3.11
  • Vue Select Version: 4.0.0-beta.6

What happened ?
vue-select show log : vue-select.es.js:268 [vue-select warn]: Label key "option.name" does not exist in options object {}.

My Declare option data :

let option = [
    { id:1, name: "Test 1" },
    { id:2, name: "Test 2" }
];

let mySelected= {};

My View component usage :

<v-select
    :options="option"
    label="name" 👈 // specify `name` label
    v-model="mySelected"
></v-select>

Run Result : ✨

image

But!! What happened it's show log ????

image

@bombkiml bombkiml added the bug label Sep 9, 2024
@kevinluo201
Copy link

I think it's because the mySelected doesn't have name. Does a warning message like "the modelValue isn't in the options" help? If yes, I can help to develop it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants