fix: give display as none or empty in Stack component and remove it from Field component

This commit is contained in:
om-3004 committed 2024-10-12 13:52:51 +05:30
1 parent 0d0cab1894
commit 5b596256ea
1 file changed
+2 -1
+2 -1
View File
@@ -74,6 +74,7 @@ const Field = forwardRef(
"&:has(.input-error) .MuiOutlinedInput-root fieldset": { "&:has(.input-error) .MuiOutlinedInput-root fieldset": {
borderColor: theme.palette.error.text, borderColor: theme.palette.error.text,
}, },
display: hidden ? "none" : "",
}} }}
> >
{label && ( {label && (
@@ -142,7 +143,7 @@ const Field = forwardRef(
}, },
} }
: { : {
display: hidden ? "none" : "",
} }
} }
InputProps={{ InputProps={{