disable password copy

This commit is contained in:
codeaunt 2023-04-30 16:45:55 +08:00 committed by Gabriel Luiz Freitas Almeida
commit df611b6782

View file

@ -26,6 +26,9 @@ export default function InputComponent({
password && myValue.length>0?"password":""
)}
placeholder="Type a text"
onCopy={(e)=>{
if(password) e.preventDefault();
}}
onChange={(e) => {
setMyValue(e.target.value);
onChange(e.target.value);