vue-select2
vue-select2 copied to clipboard
Custom Name Option Not Working
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" } ]