diff options
| author | Adam Soltys <[email protected]> | 2024-11-09 11:28:04 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-09 11:28:04 -0800 |
| commit | 542c24b17643bc1a743c6d5eca3e3a29947c72b5 (patch) | |
| tree | 300ecabce7e1b85c1aad64780e8404c3542dfad7 /src/components/Pinpad.svelte | |
| parent | d47895ec4d54feef1114029ba11188362fa1222d (diff) | |
| download | coinos-ui-542c24b17643bc1a743c6d5eca3e3a29947c72b5.tar.gz coinos-ui-542c24b17643bc1a743c6d5eca3e3a29947c72b5.zip | |
fix 2fa
Diffstat (limited to 'src/components/Pinpad.svelte')
| -rw-r--r-- | src/components/Pinpad.svelte | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/components/Pinpad.svelte b/src/components/Pinpad.svelte index 93f31d08..72aaac81 100644 --- a/src/components/Pinpad.svelte +++ b/src/components/Pinpad.svelte @@ -1,5 +1,5 @@ <script> - import { preventDefault, stopPropagation } from 'svelte/legacy'; + import { preventDefault, stopPropagation } from "svelte/legacy"; import Left from "$comp/Left.svelte"; import Icon from "$comp/Icon.svelte"; @@ -64,7 +64,7 @@ width="32" onclick={stopPropagation(preventDefault(() => (hide = !hide)))} class="cursor-pointer" -></iconify-icon> + ></iconify-icon> </label> <div class="grid grid-cols-3 gap-2 w-[300px] mx-auto grayscale"> @@ -73,7 +73,9 @@ <button type="button" class="btn" - onclick={stopPropagation(preventDefault(() => handleInput(value)))} + onclick={((e) => e.preventDefault(), + e.stopPropagation(), + handleInput(value))} > <Left /> </button> @@ -81,8 +83,9 @@ <button type="button" class="btn" - onclick={stopPropagation(preventDefault(() => handleInput(value)))} - >{value}</button + onclick={((e) => e.preventDefault(), + e.stopPropagation(), + handleInput(value))}>{value}</button > {/if} {/each} |
