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

Custom "valueProp" not working in single mode #13

Closed
Z3US89 opened this issue Jan 8, 2021 · 1 comment
Closed

Custom "valueProp" not working in single mode #13

Z3US89 opened this issue Jan 8, 2021 · 1 comment

Comments

@Z3US89
Copy link

Z3US89 commented Jan 8, 2021

Hello together. Happy new year.

When I select a option, modelValue changed but the input stays empty.

Here my code example:

<template>
  <div>
    <Multiselect
      v-model="value"
      :options="options"
      value-prop="customer"
      label="bezeichnung1"
    />
  </div>
</template>

<script>
import Multiselect from "@vueform/multiselect";

export default {
  components: {
    Multiselect,
  },
  data() {
    return {
      value: null,
      options: [
        { bezeichnung1: "test", customer: "1" },
        { bezeichnung1: "test2", customer: "2" },
        { bezeichnung1: "test3", customer: "3" },
        { bezeichnung1: "test4", customer: "4" },
      ],
    };
  },
};
</script>

<style src="@vueform/multiselect/themes/default.css"></style>

When I change "customer" to "value" in template and script, it's working.
This problem is only in "single" mode.

@adamberecz
Copy link
Collaborator

adamberecz commented Jan 12, 2021

Fixed in 1.2.4 - Happy new year you too!

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

2 participants