I have loop on my select dropdown by default it shows the data properly.
<select name="" id="input" class="form-control selectteam">
<option value="" disabled="" selected="">Filter by team</option>
<option v-for="(team, index) in nblTeams" :value="team.clubName">{{team.clubName}}</option>
</select>
but when I add $('.selectteam').selectpicker(); in the mounted method as per code below
mounted: function() {
this.getCurrentSeasonTeams().then( (response) => {
if( response.status == 200 && typeof(response.data) == 'object' ) {
this.nblTeams = response.data;
}
});
$('.selectteam').selectpicker();
}
it doesnt show the teams list already. Btw I'm using bootstrap-select - Silvio Moreto