summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_switch_modal.jsx
diff options
context:
space:
mode:
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}