Merge branch 'btzr-io-patch-3'

This commit is contained in:
Jeremy Kauffman 2017-08-28 13:57:10 -04:00
commit 6d6f70ed46
2 changed files with 4 additions and 2 deletions

View file

@ -32,6 +32,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
* Support claims no longer show up on Published page (#384)
* Fixed rendering of small prices (#461)
* Fixed incorrect URI in Downloads/Published page (#460)
* Fixed menu bug (#503)
### Deprecated
*

View file

@ -69,7 +69,8 @@ export class DropDownMenu extends React.PureComponent {
});
}
handleWindowClick(e) {
/*this will force "this" to always be the class, even when passed to an event listener*/
handleWindowClick = e => {
if (
this.state.menuOpen &&
(!this._menuDiv || !this._menuDiv.contains(e.target))
@ -78,7 +79,7 @@ export class DropDownMenu extends React.PureComponent {
menuOpen: false,
});
}
}
};
render() {
if (!this.state.menuOpen && this._isWindowClickBound) {