1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>