1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00
Apparently the lack of the `setDropdownState` function is what causes
the page refresh to happen when clicking on a header notification…
This commit is contained in:
Brett Sun 2016-02-05 12:04:23 +01:00
parent 15cf6498a8
commit a020ed6a28

View File

@ -55,11 +55,7 @@ let HeaderNotifications = React.createClass({
NOW, THAT DIDN'T WORK - the onSelect routine isnt triggered in all cases
Hence, we do this manually
*/
const { dropdownButton } = this.refs;
if (dropdownButton && typeof dropdownButton.setDropdownState === 'function') {
dropdownbutton.setDropdownState(false);
}
this.refs.dropdownbutton.setDropdownState(false);
},
getPieceNotifications() {