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.

Custom Name Option Not Working #60

@marcodeluca

Description

@marcodeluca

Setting the name field doesnt work:

<Select2 v-model="data.org_id" name="title" id="id" :options="list" :settings="select2Settings" />

This will work if the data uses "text":

list: [ { "id": 1, "text": "one" }, { "id": 2, "text": "two" }, { "id": 3, "text": "three" }, { "id": 4, "text": "four" } ]

But using "name" to set to something else doesnt work:

list: [ { "id": 1, "title": "one" }, { "id": 2, "title": "two" }, { "id": 3, "title": "three" }, { "id": 4, "title": "four" } ]

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