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

modelValue as Number #59

Open
Open
@marcodeluca

Description

@marcodeluca

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'
                },
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions