Skip to content

Commit

Permalink
Prevent default for modal forms
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Nov 2, 2023
1 parent b77a310 commit 5eb70a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
bind:this={form}
transition:fade={{ duration: 200 }}
class="modal is-active"
on:submit
on:submit|preventDefault={() => dispatch('submit')}
>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions-->
Expand Down
2 changes: 1 addition & 1 deletion src/lib/SolverConfig.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@

<h5 class="title is-5">Solving options</h5>

<form on:submit={() => dispatch('close')}>
<form on:submit|preventDefault={() => dispatch('close')}>
<div class="field is-grouped">
<p class="control checkbox-control">
<input
Expand Down

0 comments on commit 5eb70a3

Please sign in to comment.