When using v-if="css_max_count[i] == true"
everything works fine, but as soon as I add a return
statement, the code stops working. Do you know why?
Here is the shortened version of the code:
<div class="ui form" v-for="(im, i) in sorted_listim">
<div class="ui left pointing red basic label" v-if="css_max_count[i] == true">
{{im.count_buy}}
</div>
<div @click="add_dar(i)" class="ui right small basic green button"><h3>+</h3>
</div>
</div>
add_dar(i) {
if (im.count_buy < count) {
this.css_max_count[i] = true
// return - ??????
} else {
this.css_max_count[i] = false
}
}