From 5b596256ea94cb4214b67b4d67723b5bb6c125ee Mon Sep 17 00:00:00 2001 From: om-3004 Date: Sat, 12 Oct 2024 13:52:51 +0530 Subject: [PATCH] fix: give display as none or empty in Stack component and remove it from Field component --- Client/src/Components/Inputs/Field/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/src/Components/Inputs/Field/index.jsx b/Client/src/Components/Inputs/Field/index.jsx index 1843a411b..9dbf616a9 100644 --- a/Client/src/Components/Inputs/Field/index.jsx +++ b/Client/src/Components/Inputs/Field/index.jsx @@ -74,6 +74,7 @@ const Field = forwardRef( "&:has(.input-error) .MuiOutlinedInput-root fieldset": { borderColor: theme.palette.error.text, }, + display: hidden ? "none" : "", }} > {label && ( @@ -142,7 +143,7 @@ const Field = forwardRef( }, } : { - display: hidden ? "none" : "", + } } InputProps={{