Fixed click handlers for autocomplete (#3213)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
0788e83647
Коммит
e44b8ec6d5
@@ -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>
|
||||
|
||||
@@ -23,7 +23,7 @@ class EmoticonSuggestion extends Suggestion {
|
||||
return (
|
||||
<div
|
||||
className={className}
|
||||
onClick={this.props.onClick}
|
||||
onClick={this.handleClick}
|
||||
>
|
||||
<div className='pull-left'>
|
||||
<img
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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'
|
||||
|
||||
Ссылка в новой задаче
Block a user