Improved selection logic when using both the mouse and arrow keys

Этот коммит содержится в:
Reed Garmsen
2015-07-12 12:34:51 -07:00
родитель 9cc3d34285
Коммит ce9756e44d
2 изменённых файлов: 23 добавлений и 3 удалений

Просмотреть файл

@@ -21,6 +21,7 @@ module.exports = React.createClass({
}
},
render: function() {
var self = this;
var icon;
var timestamp = UserStore.getCurrentUser().update_at;
if (this.props.id != null) {
@@ -29,7 +30,7 @@ module.exports = React.createClass({
icon = <span><i className="mention-img fa fa-users fa-2x"></i></span>;
}
return (
<div className={"mentions-name " + this.state.isFocused} onClick={this.handleClick}>
<div className={"mentions-name " + this.state.isFocused} onClick={this.handleClick} onMouseEnter={function(){self.props.handleMouseEnter(self.props.listId)}}>
<div className="pull-left">{icon}</div>
<div className="pull-left mention-align"><span>@{this.props.username}</span><span className="mention-fullname">{this.props.secondary_text}</span></div>
</div>