Skip to content

Commit

Permalink
Change compose box inputs from controlled to 'not controlled'
Browse files Browse the repository at this point in the history
This is the beginning of a general performance improvement and also
a fix for #2589
  • Loading branch information
borisyankov authored and gnprice committed Jun 6, 2018
1 parent 1961612 commit 5dbb9c8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/compose/ComposeBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ export default class ComposeBox extends PureComponent<Props, State> {
onChangeText={this.handleTopicChange}
onFocus={this.handleTopicFocus}
onBlur={this.handleTopicBlur}
value={topic}
/>
)}
<MultilineInput
Expand All @@ -287,7 +286,6 @@ export default class ComposeBox extends PureComponent<Props, State> {
messageInputRef(component);
}
}}
value={message}
onBlur={this.handleMessageBlur}
onChange={this.handleMessageChange}
onFocus={this.handleMessageFocus}
Expand Down

0 comments on commit 5dbb9c8

Please sign in to comment.