aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PasswordInput.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/PasswordInput.svelte')
-rw-r--r--src/components/PasswordInput.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PasswordInput.svelte b/src/components/PasswordInput.svelte
index 860899c2..8c7d8d7c 100644
--- a/src/components/PasswordInput.svelte
+++ b/src/components/PasswordInput.svelte
@@ -4,11 +4,11 @@
show = $bindable(),
value = $bindable(),
focus = () => {},
- placeholder,
+ placeholder = undefined,
} = $props();
let toggle = (e) => {
- e.preventDefault();
+ e?.preventDefault();
show = !show;
};