I want to make a question solving screen using v-window. I keep my questions in a questionlist array. Clicking on the next button moves to the next window. I don't want it to go back to the beginning when it comes to the last question. I wrote clickable for this and bind it with disabled on the button. But when i do this, my button is disabled directly.
<v-btn @click="next" :disabled="clickable" v-model="terms">
<v-icon x-large>mdi-arrow-right-thick</v-icon>
</v-btn>
methods: {
next() {
this.onboarding =
this.onboarding + 1 === this.length ? 0 : this.onboarding + 1;
},
},
watch: {
clickable: function () {
const length = this.questionList.length;
if (this.onboarding == length) {
return !this.terms;
}
return this.terms;
},
},