From 4d8f85508a1042ce338e00e38fb5069442b97b9d Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Tue, 5 Nov 2024 17:16:27 +0100 Subject: [PATCH] Use -webkit-text-security to hide passphrase --- components/form.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/form.js b/components/form.js index 1d37cdc4..7f11e19d 100644 --- a/components/form.js +++ b/components/form.js @@ -1188,17 +1188,18 @@ 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 - return (