Skip to content

v-model, reduce and multiple problem (v3.0) #842

@codymoorhouse

Description

@codymoorhouse

Describe the bug
When using v-select with multiple and reduce, if your v-model already has tags, it does not load the tags properly.

To Reproduce
Steps to reproduce the behavior:

  1. Add v-select with multiple, v-model, options (should be an array of Objects) and a reducer.
  2. Add pre-determined tags into the v-model data binding
  3. Load v-select and the tags will not be loaded properly onto the component, despite having the value set as an array of tags
  4. When you click on a tag from here, it will wipe the existing array values and start a new array with the newly selected tag.

Expected behavior
The tags should show on v-select.

Screenshots
Screen Shot 2019-04-18 at 9 37 12 AM
Screen Shot 2019-04-18 at 9 46 47 AM
Screen Shot 2019-04-18 at 9 37 44 AM
Screen Shot 2019-04-18 at 9 40 01 AM
Screen Shot 2019-04-18 at 9 40 10 AM

Desktop (please complete the following information):

  • macOS Mojave 10.14.3
  • Chrome
  • 73.0.3683.103

Smartphone (please complete the following information):
n/a

Additional context
This seems to occur when the component loads before the data is loaded on the page.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions