diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-06-02 15:42:50 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-06-02 12:42:50 -0700 |
commit | e44b8ec6d57fc55230a5c97ea105b7fd9ef59aca (patch) | |
tree | 7e0f7fd16ee4ec9376aa379fb4ac4635bdceae81 /webapp | |
parent | 0788e836475722123c36835489396d65c6f9b252 (diff) | |
download | chat-e44b8ec6d57fc55230a5c97ea105b7fd9ef59aca.tar.gz chat-e44b8ec6d57fc55230a5c97ea105b7fd9ef59aca.tar.bz2 chat-e44b8ec6d57fc55230a5c97ea105b7fd9ef59aca.zip |
Fixed click handlers for autocomplete (#3213)
Diffstat (limited to 'webapp')
4 files changed, 7 insertions, 7 deletions
diff --git a/webapp/components/suggestion/command_provider.jsx b/webapp/components/suggestion/command_provider.jsx index 73ae4deaa..58b77a331 100644 --- a/webapp/components/suggestion/command_provider.jsx +++ b/webapp/components/suggestion/command_provider.jsx @@ -9,7 +9,7 @@ import Suggestion from './suggestion.jsx'; class CommandSuggestion extends Suggestion { render() { - const {item, isSelection, onClick} = this.props; + const {item, isSelection} = this.props; let className = 'command'; if (isSelection) { @@ -19,7 +19,7 @@ class CommandSuggestion extends Suggestion { return ( <div className={className} - onClick={onClick} + onClick={this.handleClick} > <div className='command__title'> <string>{item.suggestion} {item.hint}</string> diff --git a/webapp/components/suggestion/emoticon_provider.jsx b/webapp/components/suggestion/emoticon_provider.jsx index a110796e1..e2ed7978d 100644 --- a/webapp/components/suggestion/emoticon_provider.jsx +++ b/webapp/components/suggestion/emoticon_provider.jsx @@ -23,7 +23,7 @@ class EmoticonSuggestion extends Suggestion { return ( <div className={className} - onClick={this.props.onClick} + onClick={this.handleClick} > <div className='pull-left'> <img diff --git a/webapp/components/suggestion/search_channel_provider.jsx b/webapp/components/suggestion/search_channel_provider.jsx index 2b8005204..2e60d579f 100644 --- a/webapp/components/suggestion/search_channel_provider.jsx +++ b/webapp/components/suggestion/search_channel_provider.jsx @@ -11,7 +11,7 @@ import Suggestion from './suggestion.jsx'; class SearchChannelSuggestion extends Suggestion { render() { - const {item, isSelection, onClick} = this.props; + const {item, isSelection} = this.props; let className = 'search-autocomplete__item'; if (isSelection) { @@ -20,7 +20,7 @@ class SearchChannelSuggestion extends Suggestion { return ( <div - onClick={onClick} + onClick={this.handleClick} className={className} > <i className='fa fa fa-plus-square'></i>{item.name} diff --git a/webapp/components/suggestion/search_user_provider.jsx b/webapp/components/suggestion/search_user_provider.jsx index 5a9e70d0f..1a3075a30 100644 --- a/webapp/components/suggestion/search_user_provider.jsx +++ b/webapp/components/suggestion/search_user_provider.jsx @@ -11,7 +11,7 @@ import Suggestion from './suggestion.jsx'; class SearchUserSuggestion extends Suggestion { render() { - const {item, isSelection, onClick} = this.props; + const {item, isSelection} = this.props; let className = 'search-autocomplete__item'; if (isSelection) { @@ -21,7 +21,7 @@ class SearchUserSuggestion extends Suggestion { return ( <div className={className} - onClick={onClick} + onClick={this.handleClick} > <img className='profile-img rounded' |