diff options
| author | Adam Soltys <[email protected]> | 2024-10-01 20:37:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-01 20:37:56 -0700 |
| commit | a3f42d52ffc972a304d3d83fc10d602336fe5e83 (patch) | |
| tree | 83a8166f5cadf6cf5a216d47faee0218c4955c81 /src/components/Pinpad.svelte | |
| parent | 18ecd9e84259db6c8ed18caebc1d9183da3e986c (diff) | |
| download | coinos-ui-a3f42d52ffc972a304d3d83fc10d602336fe5e83.tar.gz coinos-ui-a3f42d52ffc972a304d3d83fc10d602336fe5e83.zip | |
stop propagation of numpad buttons
Diffstat (limited to 'src/components/Pinpad.svelte')
| -rw-r--r-- | src/components/Pinpad.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Pinpad.svelte b/src/components/Pinpad.svelte index 337b53d4..2bb2bcf9 100644 --- a/src/components/Pinpad.svelte +++ b/src/components/Pinpad.svelte @@ -73,7 +73,7 @@ <button type="button" class="bg-primary rounded-xl py-4 px-8 font-semibold active:bg-black active:text-white flex justify-center items-center hover:opacity-80" - on:click={() => handleInput(value)} + on:click|stopPropagation|preventDefault={() => handleInput(value)} > <Left /> </button> @@ -81,7 +81,7 @@ <button type="button" class="bg-primary rounded-xl py-4 px-8 font-semibold active:bg-black active:text-white hover:opacity-80" - on:click={() => handleInput(value)}>{value}</button + on:click|stopPropagation|preventDefault={() => handleInput(value)}>{value}</button > {/if} {/each} |
