mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user