Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

modelValue as Number #59

Open
marcodeluca opened this issue May 17, 2022 · 0 comments
Open

modelValue as Number #59

marcodeluca opened this issue May 17, 2022 · 0 comments

Comments

@marcodeluca
Copy link

I get the following warning when my v-model value is an integer:

Invalid prop: type check failed for prop "modelValue". Expected String | Array, got Number with value 1.

Am i missing a setting or something?

<Select2 :settings="select2Settings" type="number" v-model="assigned_to" :options="users"/>

users: [{
                    id: 1,
                    text: 'MD'
                },
                {
                    id: 2,
                    text: 'CR'
                },
                {
                    id: 3,
                    text: 'IL'
                },
...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant