Fix fieldset fixes
This commit is contained in:
parent
f2085c8344
commit
9073f4262f
1 changed files with 3 additions and 3 deletions
|
|
@ -9,9 +9,9 @@ interface Props {
|
|||
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void
|
||||
}
|
||||
|
||||
const Fieldset = (props: Props) => {
|
||||
const Fieldset = React.forwardRef<HTMLInputElement, Props>(function fieldSet(props, ref) {
|
||||
const fieldType = (['password', 'confirm_password'].includes(props.fieldName)) ? 'password' : 'text'
|
||||
|
||||
|
||||
return (
|
||||
<fieldset className="Fieldset">
|
||||
<input
|
||||
|
|
@ -31,6 +31,6 @@ const Fieldset = (props: Props) => {
|
|||
}
|
||||
</fieldset>
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
export default Fieldset
|
||||
Loading…
Reference in a new issue