From 649ed1f53a7948bafda45aab36ed214d1808b51e Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 7 Jun 2023 15:38:45 +0200 Subject: [PATCH] Fix: multianswer with a free textfield did not activate --- UI/Popup/TagRendering/TagRenderingQuestion.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/UI/Popup/TagRendering/TagRenderingQuestion.svelte b/UI/Popup/TagRendering/TagRenderingQuestion.svelte index a3467abad..d0580551c 100644 --- a/UI/Popup/TagRendering/TagRenderingQuestion.svelte +++ b/UI/Popup/TagRendering/TagRenderingQuestion.svelte @@ -19,6 +19,7 @@ import TagRenderingMappingInput from "./TagRenderingMappingInput.svelte"; import {Translation} from "../../i18n/Translation"; import Constants from "../../../Models/Constants"; + import {TagUtils} from "../../../Logic/Tags/TagUtils"; export let config: TagRenderingConfig; export let tags: UIEventSource>; @@ -44,7 +45,9 @@ checkedMappings = [...config.mappings.map(_ => false), false /*One element extra in case a freeform value is added*/]; } if (config.freeform?.key) { - freeformInput.setData(tags.data[config.freeform.key]); + if(!config.multiAnswer){ // Somehow, setting multianswer freeform values is broken if this is not set + freeformInput.setData(tags.data[config.freeform.key]); + } } else { freeformInput.setData(undefined) } @@ -166,7 +169,7 @@ {/if}