🐛 Submit on add answer/question button
This commit is contained in:
@@ -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 }];
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user