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

autocomplete on custom case #513

Open
PyroHo opened this issue Oct 6, 2020 · 0 comments
Open

autocomplete on custom case #513

PyroHo opened this issue Oct 6, 2020 · 0 comments

Comments

@PyroHo
Copy link

PyroHo commented Oct 6, 2020

<ui-autocomplete
  :keys="{ label: 'name', value: 'id' }"
  :suggestions="teachers" v-model="teacherID"
>

if id equal to number 0 then the selection return an object ( teacher ), not id

OwO

[Vue warn]: Invalid prop: type check failed for prop "value". Expected String, Number, got 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