From 5c089f4dd1c7bcee21a5a0f232855bf8467f0a59 Mon Sep 17 00:00:00 2001 From: EETagent Date: Sun, 20 Nov 2022 14:57:37 +0100 Subject: [PATCH] fix: use on key up --- frontend/src/routes/login/[code=application]/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/login/[code=application]/+page.svelte b/frontend/src/routes/login/[code=application]/+page.svelte index a5837a1..0a55224 100644 --- a/frontend/src/routes/login/[code=application]/+page.svelte +++ b/frontend/src/routes/login/[code=application]/+page.svelte @@ -8,7 +8,7 @@ let codeValueArray: Array = []; let codeElementArray: Array = []; - const inputMobileOnKeyDown = (event: KeyboardEvent) => { + const inputMobileOnKeyUp = (event: KeyboardEvent) => { let input = event.target as HTMLInputElement; if (input.value.length > 8) { input.value = input.value.slice(0, 8); @@ -50,7 +50,7 @@ bind:value={codeValueMobile} type="text" class="codeInputMobile" - on:keydown={inputMobileOnKeyDown} + on:keyup={inputMobileOnKeyUp} /> {#each [1, 2, 3, 4] as value}