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
|
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'
|
const fieldType = (['password', 'confirm_password'].includes(props.fieldName)) ? 'password' : 'text'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<fieldset className="Fieldset">
|
<fieldset className="Fieldset">
|
||||||
<input
|
<input
|
||||||
|
|
@ -31,6 +31,6 @@ const Fieldset = (props: Props) => {
|
||||||
}
|
}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
)
|
)
|
||||||
}
|
})
|
||||||
|
|
||||||
export default Fieldset
|
export default Fieldset
|
||||||
Loading…
Reference in a new issue