Web: Components: fixed Textarea
This commit is contained in:
parent
fa8f00d17a
commit
6c3251e90f
@ -46,8 +46,6 @@ const StyledTextarea = styled(ClearTextareaAutosize)`
|
|||||||
|
|
||||||
class Textarea extends React.PureComponent {
|
class Textarea extends React.PureComponent {
|
||||||
|
|
||||||
onChange = (e) => this.props.onChange && this.props.onChange(e);
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
// console.log('Textarea render');
|
// console.log('Textarea render');
|
||||||
return (
|
return (
|
||||||
@ -58,7 +56,7 @@ class Textarea extends React.PureComponent {
|
|||||||
<StyledTextarea
|
<StyledTextarea
|
||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
placeholder={this.props.placeholder}
|
placeholder={this.props.placeholder}
|
||||||
onChange={this.onChange}
|
onChange={(e) => this.props.onChange && this.props.onChange(e)}
|
||||||
maxLength={this.props.maxLength}
|
maxLength={this.props.maxLength}
|
||||||
name={this.props.name}
|
name={this.props.name}
|
||||||
tabIndex={this.props.tabIndex}
|
tabIndex={this.props.tabIndex}
|
||||||
|
Loading…
Reference in New Issue
Block a user