From 0e3fcd90fa5dcd7ff1e1fb9edab07ce591194c44 Mon Sep 17 00:00:00 2001 From: James Huang Date: Sun, 23 Jul 2023 16:30:15 -0400 Subject: [PATCH] made password field editable without clicking icon --- dashboard/src/components/Atoms/Config/InputBox.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dashboard/src/components/Atoms/Config/InputBox.tsx b/dashboard/src/components/Atoms/Config/InputBox.tsx index a25bd46e..1e2e5b2a 100644 --- a/dashboard/src/components/Atoms/Config/InputBox.tsx +++ b/dashboard/src/components/Atoms/Config/InputBox.tsx @@ -170,7 +170,8 @@ export default function InputBox({ let icons = []; - if (typeModified !== 'password' && touched) { + // enable editing regardless of input type + if (touched) { icons.push( @@ -255,7 +257,7 @@ export default function InputBox({ { setValue(value.trim()); }} - disabled={typeModified === 'password' ? true : disabled} + disabled={disabled} type={typeModified} autoComplete={DISABLE_AUTOFILL} />