Merge pull request #1653 from Safelite/feature/CSR-1610-bugfix-ajc
CSR-1610 fixes to questions pages
This commit is contained in:
commit
788b227962
3 changed files with 6 additions and 11 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
:questionText="q.questionText"
|
:questionText="q.questionText"
|
||||||
:answers="q.answers"
|
:answers="q.answers"
|
||||||
:groupName="`question-${index}-${q.questionSequence}`"
|
:groupName="`question-${index}-${q.questionSequence}`"
|
||||||
:modelValue="q.answerSelected"
|
v-model="q.answerSelected"
|
||||||
@update:modelValue="handleAnswer(q, $event)"
|
@update:modelValue="handleAnswer(q, $event)"
|
||||||
isRequired
|
isRequired
|
||||||
:validationRules="validationRules" />
|
:validationRules="validationRules" />
|
||||||
|
|
|
||||||
|
|
@ -75,13 +75,8 @@ export default {
|
||||||
index: Number,
|
index: Number,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
selectedAnswers: {
|
selectedAnswers() {
|
||||||
get() {
|
return this.modelValue;
|
||||||
return this.modelValue;
|
|
||||||
},
|
|
||||||
set(newValue) {
|
|
||||||
this.$emit("update:modelValue", newValue);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -341,10 +341,10 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
// this part has been fully answered, so advance to next part's question chain
|
// 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 part has not yet been fully answered, then make it the current part
|
||||||
if (!this.questionsData[i].answerData?.answerResult) {
|
if (!self.questionsData[i].answerData?.answerResult) {
|
||||||
this.currentGlassIndex = i;
|
self.currentGlassIndex = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue