mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
added .off() for dropdown hide event on LHS header
This commit is contained in:
@@ -29,6 +29,8 @@ var NavbarDropdown = React.createClass({
|
||||
},
|
||||
componentWillUnmount: function() {
|
||||
UserStore.removeTeamsChangeListener(this._onChange);
|
||||
|
||||
$(this.refs.dropdown.getDOMNode()).off('hide.bs.dropdown');
|
||||
},
|
||||
_onChange: function() {
|
||||
if (this.isMounted()) {
|
||||
|
||||
Reference in New Issue
Block a user