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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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