diff --git a/components/form.js b/components/form.js index 1d37cdc4d..95b7324e1 100644 --- a/components/form.js +++ b/components/form.js @@ -1188,17 +1188,24 @@ export function PasswordInput ({ newPass, qr, copy, readOnly, append, value, ... ) }, [showPass, copy, field?.value, qr, readOnly, append]) - const maskedValue = !showPass && props.as === 'textarea' ? field?.value?.replace(/./g, '•') : field?.value - + const style = props.style ? { ...props.style } : {} + if (props.as === 'textarea') { + if (!showPass) { + style.WebkitTextSecurity = 'disc' + } else { + if (style.WebkitTextSecurity) delete style.WebkitTextSecurity + } + } return (