aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-26 15:37:06 -0700
committerAdam Soltys <[email protected]>2022-10-26 15:37:09 -0700
commit972a6f8e3724fc5f72f6b974e09982b6ad11e662 (patch)
treec48250c98ecda9f30558d9038e7068ba49fb02e1 /src/components
parente8139afad5c32a55288eb08eaa992130425e2cd3 (diff)
downloadcoinos-ui-972a6f8e3724fc5f72f6b974e09982b6ad11e662.tar.gz
coinos-ui-972a6f8e3724fc5f72f6b974e09982b6ad11e662.zip
focus next empty input for pin
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Pin.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte
index 8f33a7f3..854b9de0 100644
--- a/src/components/Pin.svelte
+++ b/src/components/Pin.svelte
@@ -5,7 +5,7 @@
let pinCode = [];
let pinInput;
- $: pinInput && tick().then(pinInput && pinInput.focusFirstInput);
+ $: pinCode && pinInput && tick().then(pinInput && pinInput.focusNextEmptyInput());
$: pinCode.length > 5 && ($pin = pinCode.join(''));
</script>