support specifying line count in textareas

This commit is contained in:
Ali Abid 2021-07-08 11:42:35 -07:00
parent 0e0e6f82ec
commit ebe3d1b49b

View File

@ -22,7 +22,7 @@ class TextboxInput extends React.Component {
} else if (this.props.lines > 1) {
return (
<div className="input_text">
<textarea value={this.props.value || ""} onChange={this.handleChange}>
<textarea value={this.props.value || ""} rows={this.props.lines} onChange={this.handleChange}>
</textarea>
</div>
)