mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
support specifying line count in textareas
This commit is contained in:
parent
0e0e6f82ec
commit
ebe3d1b49b
@ -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>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user