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
commitabbd5917a4d3d154614a3d48b23df25867668a8e (patch)
treee275e6727d03c9e18fff5da96b7c78317e5ed41e /src/components/PasswordInput.svelte
parente294a1793e3e884ed3f6c095f4978ccd44255a16 (diff)
downloadcoinos-ui-abbd5917a4d3d154614a3d48b23df25867668a8e.tar.gz
coinos-ui-abbd5917a4d3d154614a3d48b23df25867668a8e.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>