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

Custom Name Option Not Working #60

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

Custom Name Option Not Working #60

marcodeluca opened this issue May 21, 2022 · 0 comments

Comments

@marcodeluca
Copy link

marcodeluca commented May 21, 2022

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" } ]

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