diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-10-25 10:11:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 10:11:34 -0400 |
commit | 0741d3be0a927ea659591ef811795018fbac85d0 (patch) | |
tree | 68eac5cda8950eb3d29cf99dac8ae5b657552afa /webapp/components/create_post.jsx | |
parent | f8182022b61a1f110a99fc027c26b20736beef1a (diff) | |
download | chat-0741d3be0a927ea659591ef811795018fbac85d0.tar.gz chat-0741d3be0a927ea659591ef811795018fbac85d0.tar.bz2 chat-0741d3be0a927ea659591ef811795018fbac85d0.zip |
PLT-4404 Replace calls to onInput with onChange to better support IE11 (#4315)
* Replace calls to onInput with onChange to better support IE11
* Replaced react-textarea-autosize with react-autosize-textarea
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r-- | webapp/components/create_post.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index 232edaa0c..ae25fc74e 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -43,7 +43,7 @@ export default class CreatePost extends React.Component { this.getCurrentDraft = this.getCurrentDraft.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.postMsgKeyPress = this.postMsgKeyPress.bind(this); - this.handleInput = this.handleInput.bind(this); + this.handleChange = this.handleChange.bind(this); this.handleUploadClick = this.handleUploadClick.bind(this); this.handleUploadStart = this.handleUploadStart.bind(this); this.handleFileUploadComplete = this.handleFileUploadComplete.bind(this); @@ -210,7 +210,7 @@ export default class CreatePost extends React.Component { GlobalActions.emitLocalUserTypingEvent(this.state.channelId, ''); } - handleInput(e) { + handleChange(e) { const messageText = e.target.value; this.setState({messageText}); @@ -512,7 +512,7 @@ export default class CreatePost extends React.Component { <div className='post-create-body'> <div className='post-body__cell'> <Textbox - onInput={this.handleInput} + onChange={this.handleChange} onKeyPress={this.postMsgKeyPress} onKeyDown={this.handleKeyDown} messageText={this.state.messageText} |