Passing javascript true to DOM element
This commit is contained in:
parent
ba6c45d551
commit
821ef4c41b
1 changed files with 2 additions and 2 deletions
|
|
@ -8,13 +8,13 @@ interface Props
|
||||||
React.InputHTMLAttributes<HTMLInputElement>,
|
React.InputHTMLAttributes<HTMLInputElement>,
|
||||||
HTMLInputElement
|
HTMLInputElement
|
||||||
> {
|
> {
|
||||||
visible?: boolean
|
visible?: string
|
||||||
error?: string
|
error?: string
|
||||||
label?: string
|
label?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
visible: true,
|
visible: 'true',
|
||||||
}
|
}
|
||||||
|
|
||||||
const Input = React.forwardRef<HTMLInputElement, Props>(function Input(
|
const Input = React.forwardRef<HTMLInputElement, Props>(function Input(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue