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.
2 parents b90d9c6 + 58ea599 commit f02e334Copy full SHA for f02e334
src/scripts/Textarea.js
@@ -30,11 +30,12 @@ export default class Textarea extends Component {
30
</FormElement>
31
);
32
}
33
- const { className, ...pprops } = props;
+ const { className, textareaRef, ...pprops } = props;
34
const taClassNames = classnames(className, 'slds-input');
35
return (
36
<textarea
37
id={ id }
38
+ ref={ textareaRef }
39
className={ taClassNames }
40
onChange={ this.onChange }
41
{ ...pprops }
@@ -52,6 +53,7 @@ Textarea.propTypes = {
52
53
totalCols: PropTypes.number,
54
cols: PropTypes.number,
55
onChange: PropTypes.func,
56
+ textareaRef: PropTypes.func,
57
};
58
59
Textarea.isFormElement = true;
0 commit comments