diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index 19bef16c..c649959f 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -65,7 +65,7 @@ function Input({ ...props }: Props) { const [copyLabel, setCopyLabel] = useState('Copy') - const [hidden, setHidden] = useState(reveal) + const [hidden, setHidden] = useState(true) const __styles = styleHandler('input') @@ -160,7 +160,7 @@ function Input({ placeholder={placeholder} ref={inputRef} type={type} - value={hidden ? HIDDEN_PLACEHOLDER : value} + value={reveal && hidden ? HIDDEN_PLACEHOLDER : value} className={inputClasses.join(' ')} {...props} /> @@ -168,7 +168,7 @@ function Input({ {copy || error || actions ? (