🐛 Submit on add answer/question button

This commit is contained in:
Mawoka
2022-03-06 11:43:43 +01:00
parent 1de7d92479
commit bb9a953c2a
+2
View File
@@ -85,6 +85,7 @@
</label>
<button
class="text-left"
type='button'
on:click={() => {
data.questions[index_question].answers = [
...data.questions[index_question].answers,
@@ -98,6 +99,7 @@
{/each}
<button
class="text-left"
type='button'
on:click={() => {
data.questions = [...data.questions, { ...empty_question }];
}}