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
1 changed files with 1 additions and 5 deletions

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() {