Skip to content

Commit c2eef29

Browse files
committed
Pre-fill answer if there's one already set
1 parent 694c4b5 commit c2eef29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/QuestionTypes/BaseType.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
}
3535
},
3636
mounted() {
37-
if (this.question.multiple) {
37+
if (this.question.answer) {
38+
this.dataValue = this.question.answer
39+
} else if (this.question.multiple) {
3840
this.dataValue = []
3941
}
4042
},

0 commit comments

Comments
 (0)