diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index 4c24fa00..5dbee578 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -61,7 +61,7 @@ function Input({ ...props }: Props) { const [copyLabel, setCopyLabel] = useState('Copy') - const [hidden, setHidden] = useState(reveal) + const [hidden, setHidden] = useState(true) // if `type` is not assigned, default to text input if (!type) { @@ -125,7 +125,7 @@ function Input({ placeholder={placeholder} ref={inputRef} type={type} - value={hidden ? hiddenPlaceholder : value} + value={reveal && hidden ? hiddenPlaceholder : value} className={inputClasses.join(' ')} {...props} /> @@ -136,7 +136,7 @@ function Input({ size={1} > {error && } - {copy && !hidden ? ( + {copy && !(reveal && hidden) ? (