From 0741d3be0a927ea659591ef811795018fbac85d0 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 25 Oct 2016 10:11:34 -0400 Subject: 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 --- webapp/components/create_post.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webapp/components/create_post.jsx') 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 {