Fix handleSubmit to use local state

This commit is contained in:
Elias Nahum 2017-11-13 21:04:37 -03:00 committed by enahum
parent c877d983cc
commit 36d2087660

View file

@ -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);