Skip to content

Commit

Permalink
Done button no longer auto submits - ref #28
Browse files Browse the repository at this point in the history
  • Loading branch information
SomewhatMay committed Mar 12, 2024
1 parent f64f587 commit 52f3c12
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lib/components/FormFlow/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@
{/each}
<div class="text-center">
<button
class="button clickable text-xl !px-5 !py-2 mr-3 !font-normal"
class:!bg-enabled={!$errors[$response]}
on:click={() => deleteResponse()} disabled={$errors[$response]}>🗑️ Delete</button
class="button clickable text-xl !px-5 !py-2 !bg-enabled mr-3 !font-normal"
on:click={() => deleteResponse()}>🗑️ Delete</button
><button
class="button clickable text-xl !px-5 !py-2 !bg-enabled ml-3 !font-normal"
on:click={() => submitResponse()}>✔ Done</button
class="button text-xl !px-5 !py-2 ml-3 !font-normal"
class:clickable={!$errors[$response]}
class:!bg-enabled={!$errors[$response]}
disabled={$errors[$response]}
on:click={() => goto("/")}>✔ Done</button
>
</div>

Expand Down

0 comments on commit 52f3c12

Please sign in to comment.