diff --git a/src/lib/Question.svelte b/src/lib/Question.svelte
index 3a4d574..921613b 100644
--- a/src/lib/Question.svelte
+++ b/src/lib/Question.svelte
@@ -12,7 +12,6 @@
) => void;
let qChanged = false;
- const { type, placeholder } = question;
const rows = {
short: 4,
@@ -86,34 +85,31 @@
>
- {#if type === "textarea"}
- {@const { length } = question}
-
- {:else if type === "number"}
-
- {:else if type === "text"}
- {@const { length } = question}
-
- {/if}
+ {#key question.placeholder}
+ {#if question.type === "textarea"}
+
+ {:else if question.type === "number"}
+
+ {:else if question.type === "text"}
+
+ {/if}
+ {/key}
{/if}