Fix handleSubmit to use local state
This commit is contained in:
parent
c877d983cc
commit
36d2087660
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ class PostTextbox extends PureComponent {
|
|||
clearTimeout(this.timeout);
|
||||
}
|
||||
this.timeout = setTimeout(() => {
|
||||
let {value: msg} = this.props;
|
||||
let {value: msg} = this.state;
|
||||
msg += '\n';
|
||||
this.handleTextChange(msg);
|
||||
}, 10);
|
||||
|
|
|
|||
Loading…
Reference in a new issue