diff --git a/src/components/TextInput/PasswordInput.svelte b/src/components/TextInput/PasswordInput.svelte index d6b76eb3..2343a1ae 100644 --- a/src/components/TextInput/PasswordInput.svelte +++ b/src/components/TextInput/PasswordInput.svelte @@ -26,7 +26,6 @@ const dispatch = createEventDispatcher(); const errorId = `${id}-error`; - const passwordIsVisible = type === 'text'; const _labelClass = cx( '--label', hideLabel && '--visually-hidden', @@ -48,6 +47,7 @@ tooltipPosition && `--tooltip--${tooltipPosition}`, tooltipAlignment && `--tooltip--align-${tooltipAlignment}` ); + $: passwordIsVisible = type === 'text';