From 36d2087660f0c96899127ae2067ae1907662f625 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Mon, 13 Nov 2017 21:04:37 -0300 Subject: [PATCH] Fix handleSubmit to use local state --- app/components/post_textbox/post_textbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/post_textbox/post_textbox.js b/app/components/post_textbox/post_textbox.js index 700e10d28..deaff2c4c 100644 --- a/app/components/post_textbox/post_textbox.js +++ b/app/components/post_textbox/post_textbox.js @@ -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);