Skip to content

High performance self-hosted photo and video management solution.

fix(web): use submit event instead of button click (#6112)

Jason Rasmussena7d9e25fb0d0
diff --git a/web/src/routes/(user)/share/[key]/+page.svelte b/web/src/routes/(user)/share/[key]/+page.svelte
index 9a4160ebfb..d45d1b06fc 100644
--- a/web/src/routes/(user)/share/[key]/+page.svelte
+++ b/web/src/routes/(user)/share/[key]/+page.svelte
@@ -58,8 +58,10 @@
Please enter the password to view this page.
</div>
<div class="mt-4">
- <input type="password" class="immich-form-input mr-2" placeholder="Password" bind:value={password} />
- <Button on:click={handlePasswordSubmit}>Submit</Button>
+ <form novalidate autocomplete="off" on:submit|preventDefault={handlePasswordSubmit}>
+ <input type="password" class="immich-form-input mr-2" placeholder="Password" bind:value={password} />
+ <Button type="submit">Submit</Button>
+ </form>
</div>
</div>
</main>