When moving from a mention lower in the list to one higher in the list by typing more, now properly highlights

Этот коммит содержится в:
Reed Garmsen
2015-07-12 12:49:33 -07:00
родитель ce9756e44d
Коммит 6f93cbb490

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

@@ -70,6 +70,11 @@ module.exports = React.createClass({
PostStore.removeMentionDataChangeListener(this._onChange);
$('body').off('keypress.mentionlist', '#'+this.props.id);
},
componentDidUpdate: function() {
if (this.state.mentionText != "-1" && !this.getSelection(this.state.selectedMention)) {
this.refs.mention0.select();
}
},
_onChange: function(id, mentionText, excludeList) {
if (id !== this.props.id) return;