1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-25 20:09:18 +02:00

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

This commit is contained in:
Jason Rasmussen
2024-01-01 17:45:09 -05:00
committed by GitHub
parent 014adf175a
commit a7d9e25fb0

View File

@@ -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>