Skip to content

Commit

Permalink
Click awayable component should always unbind even listener when unmo…
Browse files Browse the repository at this point in the history
…unting, regardless of manualBind setting
  • Loading branch information
jtollerene committed Feb 5, 2015
1 parent 5351e27 commit 5eb1421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/mixins/click-awayable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
},

componentWillUnmount: function() {
if (!this.manuallyBindClickAway) this._unbindClickAway();
this._unbindClickAway();
},

_checkClickAway: function(e) {
Expand Down

0 comments on commit 5eb1421

Please sign in to comment.