From 648cbbd987460a7e50cbe88742b84fb0f37d78cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 28 Apr 2020 17:34:50 +0200 Subject: [PATCH] Fix checkbox validity check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/Questions/QuestionMultiple.vue | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/src/components/Questions/QuestionMultiple.vue b/src/components/Questions/QuestionMultiple.vue index 56069b9..837115d 100644 --- a/src/components/Questions/QuestionMultiple.vue +++ b/src/components/Questions/QuestionMultiple.vue @@ -42,7 +42,7 @@ 'checkbox question__checkbox': !isUnique, }" :name="`${id}-answer`" - :required="true /* TODO: implement required option */" + :required="isRequired(answer.id)" :type="isUnique ? 'radio' : 'checkbox'" @change="onChange($event, answer.id)">