Skip to content

Commit 18ccae9

Browse files
committed
♻️ Update form element to use standard onsubmit event
1 parent c8ec12e commit 18ccae9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/web/src/routes/admin/(isNotLoggedIn)/login/+page.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
/**
88
* Log in
99
*/
10-
async function handleSubmit(): Promise<void> {
10+
async function handleSubmit(event: SubmitEvent): Promise<void> {
11+
event.preventDefault();
1112
await userStore.logIn();
1213
}
1314
@@ -19,7 +20,7 @@
1920

2021
<Meta {...meta} />
2122

22-
<form on:submit|preventDefault={handleSubmit}>
23+
<form onsubmit={handleSubmit}>
2324
<div class="mt-5 flex justify-center">
2425
<Button type="submit" primary>
2526
<SignInIcon />

0 commit comments

Comments
 (0)