🐛 Submit on add answer/question button
This commit is contained in:
@@ -85,6 +85,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<button
|
<button
|
||||||
class="text-left"
|
class="text-left"
|
||||||
|
type='button'
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
data.questions[index_question].answers = [
|
data.questions[index_question].answers = [
|
||||||
...data.questions[index_question].answers,
|
...data.questions[index_question].answers,
|
||||||
@@ -98,6 +99,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
<button
|
<button
|
||||||
class="text-left"
|
class="text-left"
|
||||||
|
type='button'
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
data.questions = [...data.questions, { ...empty_question }];
|
data.questions = [...data.questions, { ...empty_question }];
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user