We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Select is not updated when the v-model variable was changed, at least when we have a custom reduce and object type options.
v-model
reduce
To Reproduce Steps to reproduce the behavior:
entity
:value
Expected behavior Select should be updated when we change the entity value.
Screenshots
Desktop (please complete the following information):
Additional context
<template> <v-select :reduce="item => item.id" label="label" :options="entities" v-model="entity" > </v-select> </template> <script> export default { name: 'Dropdown', data () { return { entity: null, entities: [] } }, methods: { async handleSearch (search, loading) { loading(true) try { const res = await this.$http.get('persons', { params: { q: search } }) const { data } = res this.items = data } catch (e) { } loading(false) }, }, beforeMount () { this.entities = [ { id: 1, label: 'a' }, { id: 2, label: 'b' }, ] setTimeout(e => { console.log('entity value before change', this.entity) this.entity = 2 console.log('entity value after change', this.entity) }, 2000) } } </script>
This issues was not in 2.6 version.
As a temporary solution I added a watcher on the value tikagnus@360b0b4
value
The text was updated successfully, but these errors were encountered:
Should be fixed by #914
Sorry, something went wrong.
Fixed by #914.
No branches or pull requests
Describe the bug
Select is not updated when the
v-model
variable was changed, at least when we have a customreduce
and object type options.To Reproduce
Steps to reproduce the behavior:
entity
in data()entity
asv-model
or:value
entity
in a method of current componentExpected behavior
Select should be updated when we change the
entity
value.Screenshots
Desktop (please complete the following information):
Additional context
This issues was not in 2.6 version.
As a temporary solution I added a watcher on the
value
tikagnus@360b0b4The text was updated successfully, but these errors were encountered: