From 0e1e60de29a4d595e761ef632eb254a3ff774684 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Thu, 9 Feb 2023 19:08:36 +0100 Subject: [PATCH] :bug: Fixed title editor in editor --- frontend/src/lib/editor/card.svelte | 36 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/frontend/src/lib/editor/card.svelte b/frontend/src/lib/editor/card.svelte index 1eb30db..aa37d05 100644 --- a/frontend/src/lib/editor/card.svelte +++ b/frontend/src/lib/editor/card.svelte @@ -28,6 +28,7 @@ export let pow_salt: string; let uppyOpen = false; + let unique = {}; /*eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }]*/ const correctTimeInput = (_) => { @@ -41,6 +42,7 @@ .toString() .slice(0, 3); } + unique = {}; }; $: correctTimeInput(data.questions[selected_question].time); /* @@ -75,22 +77,24 @@ {:else}
- {#await import('$lib/inline-editor.svelte')} - - {:then c} -
- -
- {/await} + {#key unique} + {#await import('$lib/inline-editor.svelte')} + + {:then c} +
+ +
+ {/await} + {/key}
{#if data.questions[selected_question].image != undefined && data.questions[selected_question].image !== ''}