From df611b6782f6ace3e8dcca988d5973a23cdb2383 Mon Sep 17 00:00:00 2001 From: codeaunt Date: Sun, 30 Apr 2023 16:45:55 +0800 Subject: [PATCH] disable password copy --- src/frontend/src/components/inputComponent/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index 5858d4bf6..6f76f6773 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -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);