From 9073f4262f64f4d50764399ccd9262e04c37960d Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 29 Jan 2022 18:27:29 -0800 Subject: [PATCH] Fix fieldset fixes --- components/Fieldset/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Fieldset/index.tsx b/components/Fieldset/index.tsx index 944f4694..5b22247d 100644 --- a/components/Fieldset/index.tsx +++ b/components/Fieldset/index.tsx @@ -9,9 +9,9 @@ interface Props { onChange?: (event: React.ChangeEvent) => void } -const Fieldset = (props: Props) => { +const Fieldset = React.forwardRef(function fieldSet(props, ref) { const fieldType = (['password', 'confirm_password'].includes(props.fieldName)) ? 'password' : 'text' - + return (
{ }
) -} +}) export default Fieldset \ No newline at end of file