My code is simple, I have an array with multiple entries inside of it. I would like to cycle through that array, and create a single drop down box with all the array values listed as 'select' options.
However, multiple drop down boxes are being created instead of just one, I don't know why. Each drop down box does have the correct {{ group }} name, so it is pulling the data properly from what I can see, it just needs to be in one select list.
HTML:
<select class="groupContainer" v-for="(group, id) in groupList" :key="group.id">
<option v-bind:value="groupList[id]" class="groupValue"> {{ group }} </option>
</select>
Vue:
export default {
name: 'AddPaste',
data(){
return{
title: null,
content: null,
feedback: null,
slug: null,
groupList: []
}
},