disable password copy
This commit is contained in:
parent
0c7f2d5886
commit
df611b6782
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue