shentao / vue-multiselect

Universal select/multiselect/tagging component for Vue.js
https://vue-multiselect.js.org/
MIT License
6.66k stars 989 forks source link

Default select not working #bug #1656

Closed kozubov closed 1 year ago

kozubov commented 1 year ago

Reproduction Link

https://jsfiddle.net/bhr3ypza/

Steps to reproduce

  1. Use several Multiple select.
  2. In one select trying to use default data.
  3. Nothing happend - Just placeholder text.
  4. In singe using all work great.

`<multiselect v-model="form.selectedBudgetTime" :options="optionsBudget" :searchable="false" :close-on-select="true" :show-labels="false" track-by="value" label="text" placeholder="Select" open-direction="bottom" @input="isFlag" class="sel-v1"

`

Expected behaviour

Correct work with more that one multiselect in one component/ page

Actual behaviour

Correct work with default data.

kozubov commented 1 year ago

Create 'SelectComponent' based on multipleselect with options, v-model and class props.