From b265be48b95dda29b09c561129f450217d719a75 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Wed, 30 May 2018 12:42:24 +0300 Subject: [PATCH] Change compose box inputs from controlled to 'not controlled' This is the beginning of a general performance improvement and also a fix for #2589 --- src/compose/ComposeBox.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/compose/ComposeBox.js b/src/compose/ComposeBox.js index d2843218a17..7fbe153cc7b 100644 --- a/src/compose/ComposeBox.js +++ b/src/compose/ComposeBox.js @@ -306,7 +306,6 @@ class ComposeBox extends PureComponent { onFocus={this.handleTopicFocus} onBlur={this.handleTopicBlur} onTouchStart={this.handleInputTouchStart} - value={topic} /> )} { messageInputRef(component); } }} - value={message} onBlur={this.handleMessageBlur} onChange={this.handleMessageChange} onFocus={this.handleMessageFocus}