Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent default for modal forms #32

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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