We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d503c commit 8341b69Copy full SHA for 8341b69
src/components/FlowForm.vue
@@ -702,7 +702,7 @@
702
}
703
})
704
705
- index = questionIndex;
+ index = questionIndex
706
707
708
if (index !== this.activeQuestionIndex) {
@@ -711,9 +711,13 @@
711
if (!this.submitted && index <= this.questionListActivePath.length - 1) {
712
// Check if we can actually jump to the wanted question.
713
do {
714
- const previousQuestion = index > 0 ? this.questionListActivePath[index - 1] : null
+ const previousQuestionsAnswered =
715
+ this
716
+ .questionListActivePath
717
+ .slice(0, index)
718
+ .every(q => q.answered)
719
- if (previousQuestion === null || previousQuestion.answered) {
720
+ if (previousQuestionsAnswered) {
721
break
722
723
0 commit comments