mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-27 13:47:33 -05:00
Changed code to dismiss mention list to not trigger when you click on the list itself
This commit is contained in:
@@ -23,8 +23,9 @@ module.exports = React.createClass({
|
||||
}
|
||||
}
|
||||
);
|
||||
$(document).click(function() {
|
||||
if($('#'+self.props.id).length && $('#'+self.props.id).get(0) !== $(':focus').get(0)) {
|
||||
$(document).click(function(e) {
|
||||
if (!($('#'+self.props.id).is(e.target) || $('#'+self.props.id).has(e.target).length ||
|
||||
('mentionlist' in self.refs && $(self.refs['mentionlist'].getDOMNode()).has(e.target).length))) {
|
||||
self.setState({mentionText: "-1"})
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user