|
@@ -263,6 +263,10 @@ const propTypes = { |
|
|
* Value of the component. |
|
|
* Value of the component. |
|
|
*/ |
|
|
*/ |
|
|
value: PropTypes.any, |
|
|
value: PropTypes.any, |
|
|
|
|
|
/** |
|
|
|
|
|
* Name of the form field associated with this component. |
|
|
|
|
|
*/ |
|
|
|
|
|
name: PropTypes.string, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type Props = PropTypes.InferProps<typeof propTypes> |
|
|
type Props = PropTypes.InferProps<typeof propTypes> |
|
@@ -291,6 +295,7 @@ const TextInput = React.forwardRef<HTMLInputElement | HTMLTextAreaElement, Props |
|
|
alternate = false, |
|
|
alternate = false, |
|
|
defaultValue, |
|
|
defaultValue, |
|
|
value, |
|
|
value, |
|
|
|
|
|
name, |
|
|
}, |
|
|
}, |
|
|
ref, |
|
|
ref, |
|
|
) => ( |
|
|
) => ( |
|
@@ -333,6 +338,7 @@ const TextInput = React.forwardRef<HTMLInputElement | HTMLTextAreaElement, Props |
|
|
}} |
|
|
}} |
|
|
defaultValue={defaultValue} |
|
|
defaultValue={defaultValue} |
|
|
value={value} |
|
|
value={value} |
|
|
|
|
|
name={name} |
|
|
/> |
|
|
/> |
|
|
)} |
|
|
)} |
|
|
{!multiline && ( |
|
|
{!multiline && ( |
|
@@ -352,6 +358,7 @@ const TextInput = React.forwardRef<HTMLInputElement | HTMLTextAreaElement, Props |
|
|
}} |
|
|
}} |
|
|
defaultValue={defaultValue} |
|
|
defaultValue={defaultValue} |
|
|
value={value} |
|
|
value={value} |
|
|
|
|
|
name={name} |
|
|
/> |
|
|
/> |
|
|
)} |
|
|
)} |
|
|
</CaptureArea> |
|
|
</CaptureArea> |
|
|