Merge pull request #116 from nickago/MM-1341

MM-1341 mention auto-complete now goes away if you move off it's specific textbox
This commit is contained in:
Joram Wilander
2015-07-03 15:05:33 -04:00

View File

@@ -23,6 +23,11 @@ module.exports = React.createClass({
}
}
);
$(document).click(function() {
if($('#'+self.props.id).length && $('#'+self.props.id).get(0) !== $(':focus').get(0)) {
self.setState({mentionText: "-1"})
}
});
},
componentWillUnmount: function() {
PostStore.removeMentionDataChangeListener(this._onChange);