From 7038ad741c75de94f5290006d9a00c847f2e7867 Mon Sep 17 00:00:00 2001 From: Marvin Raiser Date: Mon, 12 Jul 2021 11:43:36 +0200 Subject: [PATCH] fix input bugs --- src/lib/Survey/SurveyPage/Question.svelte | 2 ++ src/lib/Survey/SurveyPage/inputs/BooleanInput.svelte | 4 ++-- src/lib/Survey/SurveyPage/inputs/CheckBoxInput.svelte | 4 ++-- src/lib/Survey/SurveyPage/inputs/RadioButtonInput.svelte | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lib/Survey/SurveyPage/Question.svelte b/src/lib/Survey/SurveyPage/Question.svelte index 4d9d047..88833d3 100644 --- a/src/lib/Survey/SurveyPage/Question.svelte +++ b/src/lib/Survey/SurveyPage/Question.svelte @@ -11,6 +11,8 @@ if (!question.answer) { question.answer = {}; } + + $: console.log(question.answer);
diff --git a/src/lib/Survey/SurveyPage/inputs/BooleanInput.svelte b/src/lib/Survey/SurveyPage/inputs/BooleanInput.svelte index e0fbcfc..e1f310c 100644 --- a/src/lib/Survey/SurveyPage/inputs/BooleanInput.svelte +++ b/src/lib/Survey/SurveyPage/inputs/BooleanInput.svelte @@ -2,9 +2,9 @@ import RadioButtonInput from './RadioButtonInput.svelte'; export let options = ['Ja', 'Nein']; - export let bool; + export let boolean; export let edit; - + diff --git a/src/lib/Survey/SurveyPage/inputs/CheckBoxInput.svelte b/src/lib/Survey/SurveyPage/inputs/CheckBoxInput.svelte index f3ae176..07fbbf2 100644 --- a/src/lib/Survey/SurveyPage/inputs/CheckBoxInput.svelte +++ b/src/lib/Survey/SurveyPage/inputs/CheckBoxInput.svelte @@ -1,11 +1,11 @@ diff --git a/src/lib/Survey/SurveyPage/inputs/RadioButtonInput.svelte b/src/lib/Survey/SurveyPage/inputs/RadioButtonInput.svelte index 7498c70..9cec900 100644 --- a/src/lib/Survey/SurveyPage/inputs/RadioButtonInput.svelte +++ b/src/lib/Survey/SurveyPage/inputs/RadioButtonInput.svelte @@ -1,13 +1,13 @@
{#each options as value}