CSR-1610 fixes to questions pages

This commit is contained in:
Adam Caouette 2023-12-20 14:31:36 -05:00
parent 7b8b752a31
commit 66fab1c774
3 changed files with 6 additions and 11 deletions

View file

@ -8,7 +8,7 @@
:questionText="q.questionText"
:answers="q.answers"
:groupName="`question-${index}-${q.questionSequence}`"
:modelValue="q.answerSelected"
v-model="q.answerSelected"
@update:modelValue="handleAnswer(q, $event)"
isRequired
:validationRules="validationRules" />

View file

@ -75,13 +75,8 @@ export default {
index: Number,
},
computed: {
selectedAnswers: {
get() {
return this.modelValue;
},
set(newValue) {
this.$emit("update:modelValue", newValue);
},
selectedAnswers() {
return this.modelValue;
},
},
methods: {

View file

@ -341,10 +341,10 @@ export default {
};
// this part has been fully answered, so advance to next part's question chain
for (let i = answer.index + 1; i < this.questionsData.length; i++) {
for (let i = answer.index + 1; i < self.questionsData.length; i++) {
// if this part has not yet been fully answered, then make it the current part
if (!this.questionsData[i].answerData?.answerResult) {
this.currentGlassIndex = i;
if (!self.questionsData[i].answerData?.answerResult) {
self.currentGlassIndex = i;
break;
}
}