From 7152a998f0d41565a7a241e11cab6763b4c788f6 Mon Sep 17 00:00:00 2001 From: Aldo Canepa Date: Thu, 3 Feb 2022 11:27:36 -0500 Subject: [PATCH 1/2] Remove maxLength prop from baseTextInputPropTypes The prop is not directly used by this component --- src/components/TextInput/baseTextInputPropTypes.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/TextInput/baseTextInputPropTypes.js b/src/components/TextInput/baseTextInputPropTypes.js index aa4c9156e4ab..fc154ec35886 100644 --- a/src/components/TextInput/baseTextInputPropTypes.js +++ b/src/components/TextInput/baseTextInputPropTypes.js @@ -46,9 +46,6 @@ const propTypes = { /** Saves a draft of the input value when used in a form */ shouldSaveDraft: PropTypes.bool, - /** Character limit for the input */ - maxLength: PropTypes.number, - /** Hint microcopy to be displayed under the input */ hint: PropTypes.string, }; @@ -72,7 +69,6 @@ const defaultProps = { defaultValue: undefined, forceActiveLabel: false, shouldSaveDraft: false, - maxLength: undefined, hint: '', }; From c6c51ccbff1e2a639f0cfc1d89f4c3dbc9ff9fe4 Mon Sep 17 00:00:00 2001 From: Aldo Canepa Date: Thu, 3 Feb 2022 11:54:31 -0500 Subject: [PATCH 2/2] Remove unused "hint" prop --- src/components/TextInput/baseTextInputPropTypes.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/TextInput/baseTextInputPropTypes.js b/src/components/TextInput/baseTextInputPropTypes.js index fc154ec35886..cdb3a2cb1056 100644 --- a/src/components/TextInput/baseTextInputPropTypes.js +++ b/src/components/TextInput/baseTextInputPropTypes.js @@ -45,9 +45,6 @@ const propTypes = { /** Saves a draft of the input value when used in a form */ shouldSaveDraft: PropTypes.bool, - - /** Hint microcopy to be displayed under the input */ - hint: PropTypes.string, }; const defaultProps = { @@ -69,7 +66,6 @@ const defaultProps = { defaultValue: undefined, forceActiveLabel: false, shouldSaveDraft: false, - hint: '', }; export {propTypes, defaultProps};