From 1ba89be19e0e0699600393b365b4235466c1c993 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sun, 28 Mar 2021 09:00:48 +0800 Subject: [PATCH] Add name Add name prop for values to be bound in TextInput component. --- .../react-common/src/components/TextInput/TextInput.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/react-common/src/components/TextInput/TextInput.tsx b/packages/react-common/src/components/TextInput/TextInput.tsx index 14ca99f..52a2074 100644 --- a/packages/react-common/src/components/TextInput/TextInput.tsx +++ b/packages/react-common/src/components/TextInput/TextInput.tsx @@ -263,6 +263,10 @@ const propTypes = { * Value of the component. */ value: PropTypes.any, + /** + * Name of the form field associated with this component. + */ + name: PropTypes.string, } type Props = PropTypes.InferProps @@ -291,6 +295,7 @@ const TextInput = React.forwardRef ( @@ -333,6 +338,7 @@ const TextInput = React.forwardRef )} {!multiline && ( @@ -352,6 +358,7 @@ const TextInput = React.forwardRef )}