summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-10-25 10:11:34 -0400
committerGitHub <noreply@github.com>2016-10-25 10:11:34 -0400
commit0741d3be0a927ea659591ef811795018fbac85d0 (patch)
tree68eac5cda8950eb3d29cf99dac8ae5b657552afa /webapp/components/create_comment.jsx
parentf8182022b61a1f110a99fc027c26b20736beef1a (diff)
downloadchat-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_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index 1783f4d90..4b5134d23 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -35,7 +35,7 @@ export default class CreateComment extends React.Component {
this.handleSubmit = this.handleSubmit.bind(this);
this.commentMsgKeyPress = this.commentMsgKeyPress.bind(this);
- this.handleInput = this.handleInput.bind(this);
+ this.handleChange = this.handleChange.bind(this);
this.handleKeyDown = this.handleKeyDown.bind(this);
this.handleUploadClick = this.handleUploadClick.bind(this);
this.handleUploadStart = this.handleUploadStart.bind(this);
@@ -180,7 +180,7 @@ export default class CreateComment extends React.Component {
GlobalActions.emitLocalUserTypingEvent(this.props.channelId, this.props.rootId);
}
- handleInput(e) {
+ handleChange(e) {
const messageText = e.target.value;
const draft = PostStore.getCommentDraft(this.props.rootId);
@@ -393,7 +393,7 @@ export default class CreateComment extends React.Component {
>
<div className='post-body__cell'>
<Textbox
- onInput={this.handleInput}
+ onChange={this.handleChange}
onKeyPress={this.commentMsgKeyPress}
onKeyDown={this.handleKeyDown}
messageText={this.state.messageText}