From 0741d3be0a927ea659591ef811795018fbac85d0 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
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/channel_switch_modal.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'webapp/components/channel_switch_modal.jsx')

diff --git a/webapp/components/channel_switch_modal.jsx b/webapp/components/channel_switch_modal.jsx
index 17193d196..063962a18 100644
--- a/webapp/components/channel_switch_modal.jsx
+++ b/webapp/components/channel_switch_modal.jsx
@@ -23,7 +23,7 @@ export default class SwitchChannelModal extends React.Component {
     constructor() {
         super();
 
-        this.onInput = this.onInput.bind(this);
+        this.onChange = this.onChange.bind(this);
         this.onShow = this.onShow.bind(this);
         this.onHide = this.onHide.bind(this);
         this.onExited = this.onExited.bind(this);
@@ -68,7 +68,7 @@ export default class SwitchChannelModal extends React.Component {
         });
     }
 
-    onInput(e) {
+    onChange(e) {
         this.setState({text: e.target.value});
     }
 
@@ -152,7 +152,7 @@ export default class SwitchChannelModal extends React.Component {
                         ref='search'
                         className='form-control focused'
                         type='input'
-                        onInput={this.onInput}
+                        onChange={this.onChange}
                         value={this.state.text}
                         onKeyDown={this.handleKeyDown}
                         listComponent={SuggestionList}
-- 
cgit v1.2.3-1-g7c22

