aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PasswordInput.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-28 09:02:59 -0800
committerAdam Soltys <[email protected]>2024-11-28 09:02:59 -0800
commit596c54b5f3e56be4a6f2f5506d83775edd6235f2 (patch)
treee275e6727d03c9e18fff5da96b7c78317e5ed41e /src/components/PasswordInput.svelte
parent0f5b1249fe7e45ca8a838d9c9cf6b2db6440973e (diff)
downloadcoinos-ui-596c54b5f3e56be4a6f2f5506d83775edd6235f2.tar.gz
coinos-ui-596c54b5f3e56be4a6f2f5506d83775edd6235f2.zip
rm log
Diffstat (limited to 'src/components/PasswordInput.svelte')
-rw-r--r--src/components/PasswordInput.svelte7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/PasswordInput.svelte b/src/components/PasswordInput.svelte
index 483b473d..860899c2 100644
--- a/src/components/PasswordInput.svelte
+++ b/src/components/PasswordInput.svelte
@@ -6,7 +6,12 @@
focus = () => {},
placeholder,
} = $props();
- let toggle = (e) => (show = !show);
+
+ let toggle = (e) => {
+ e.preventDefault();
+ show = !show;
+ };
+
let icon = $derived(show ? "ph:eye-bold" : "ph:eye-slash-bold");
</script>