summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_switch_modal.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/channel_switch_modal.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/channel_switch_modal.jsx')
-rw-r--r--webapp/components/channel_switch_modal.jsx6
1 files changed, 3 insertions, 3 deletions
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}