We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1dc01 commit 754fca3Copy full SHA for 754fca3
src/scripts/Textarea.js
@@ -30,12 +30,12 @@ export default class Textarea extends Component {
30
</FormElement>
31
);
32
}
33
- const { className, inputRef, ...pprops } = props;
+ const { className, textareaRef, ...pprops } = props;
34
const taClassNames = classnames(className, 'slds-input');
35
return (
36
<textarea
37
id={ id }
38
- ref={ inputRef }
+ ref={ textareaRef }
39
className={ taClassNames }
40
onChange={ this.onChange }
41
{ ...pprops }
@@ -53,7 +53,7 @@ Textarea.propTypes = {
53
totalCols: PropTypes.number,
54
cols: PropTypes.number,
55
onChange: PropTypes.func,
56
- inputRef: PropTypes.func,
+ textareaRef: PropTypes.func,
57
};
58
59
Textarea.isFormElement = true;
0 commit comments