From 5a69514f0a44d67cdc4d9e1666e864f51eaceae5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Oct 2022 15:37:06 -0700 Subject: focus next empty input for pin --- src/components/Pin.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components') 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('')); -- cgit v1.2.3