Skip to content

Commit 0d72efc

Browse files
committed
fixup! fixup! fixup! fixup! Add the missing support of help texts to InputGroup (#663)
1 parent 12741ce commit 0d72efc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/SelectField/SelectField.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ SelectField.propTypes = {
156156
fullWidth: PropTypes.bool,
157157
/**
158158
* Optional help text.
159+
*
160+
* Help text is never rendered when the component is placed into `InputGroup`.
161+
* If a help text is needed, it must be defined on the `InputGroup` component instead.
159162
*/
160163
helpText: PropTypes.node,
161164
/**
@@ -172,9 +175,6 @@ SelectField.propTypes = {
172175
*
173176
* If `key` in the option definition object is set,
174177
* then `option.key` is used instead of `option.value` in place of `<VALUE>`.
175-
*
176-
* Help text is never rendered when the component is placed into `InputGroup`.
177-
* If a help text is needed, it must be defined on the `InputGroup` component instead.
178178
*/
179179
id: PropTypes.string,
180180
/**
@@ -253,7 +253,7 @@ SelectField.propTypes = {
253253
* Validation message to be displayed.
254254
*
255255
* Validation text is never rendered when the component is placed into `InputGroup`.
256-
* If a help text is needed, it must be defined on the `InputGroup` component instead.
256+
* If a validation text is needed, it must be defined on the `InputGroup` component instead.
257257
*/
258258
validationText: PropTypes.node,
259259
/**

src/components/TextField/TextField.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ TextField.propTypes = {
189189
* Validation message to be displayed.
190190
*
191191
* Validation text is never rendered when the component is placed into `InputGroup`.
192-
* If a help text is needed, it must be defined on the `InputGroup` component instead.
192+
* If a validation text is needed, it must be defined on the `InputGroup` component instead.
193193
*/
194194
validationText: PropTypes.node,
195195
/**

0 commit comments

Comments
 (0)