Skip to content

Commit 754fca3

Browse files
author
Jeffrey Hicks
authored
Used textareaRef instead of inputRef
1 parent da1dc01 commit 754fca3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/Textarea.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ export default class Textarea extends Component {
3030
</FormElement>
3131
);
3232
}
33-
const { className, inputRef, ...pprops } = props;
33+
const { className, textareaRef, ...pprops } = props;
3434
const taClassNames = classnames(className, 'slds-input');
3535
return (
3636
<textarea
3737
id={ id }
38-
ref={ inputRef }
38+
ref={ textareaRef }
3939
className={ taClassNames }
4040
onChange={ this.onChange }
4141
{ ...pprops }
@@ -53,7 +53,7 @@ Textarea.propTypes = {
5353
totalCols: PropTypes.number,
5454
cols: PropTypes.number,
5555
onChange: PropTypes.func,
56-
inputRef: PropTypes.func,
56+
textareaRef: PropTypes.func,
5757
};
5858

5959
Textarea.isFormElement = true;

0 commit comments

Comments
 (0)