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 zulip#2589
  • Loading branch information
borisyankov committed Jun 4, 2018
1 parent 72dfcbf commit ee6a8d5
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 @@ -293,7 +293,6 @@ export default class ComposeBox extends PureComponent<Props, State> {
onFocus={this.handleTopicFocus}
onBlur={this.handleTopicBlur}
onTouchStart={this.handleInputTouchStart}
value={topic}
/>
)}
<MultilineInput
Expand All @@ -305,7 +304,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 ee6a8d5

Please sign in to comment.