diff options
Diffstat (limited to 'src/components/Pin.svelte')
| -rw-r--r-- | src/components/Pin.svelte | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte index efc1e81b..c7889aa9 100644 --- a/src/components/Pin.svelte +++ b/src/components/Pin.svelte @@ -1,4 +1,5 @@ <script> + import { focus } from "$lib/utils"; import { pin } from '$lib/store'; let pinCode = ''; @@ -12,7 +13,7 @@ <div class="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-20"> <div class="relative top-1/3 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white space-y-5"> <h1 class="text-center text-2xl font-semibold">Please enter your PIN</h1> - <input bind:value={pinCode} autofocus /> + <input bind:value={pinCode} use:focus /> <div class="w-full flex"> <button type="submit" |
