diff options
| author | Adam Soltys <[email protected]> | 2024-11-28 09:02:59 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-28 09:02:59 -0800 |
| commit | abbd5917a4d3d154614a3d48b23df25867668a8e (patch) | |
| tree | e275e6727d03c9e18fff5da96b7c78317e5ed41e /src/components | |
| parent | e294a1793e3e884ed3f6c095f4978ccd44255a16 (diff) | |
| download | coinos-ui-abbd5917a4d3d154614a3d48b23df25867668a8e.tar.gz coinos-ui-abbd5917a4d3d154614a3d48b23df25867668a8e.zip | |
rm log
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/PasswordInput.svelte | 7 |
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> |
