From a020ed6a283cee6d4387b50572578fe04020e908 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Fri, 5 Feb 2016 12:04:23 +0100 Subject: [PATCH] Revert against 8927ccb847ec8569971d154bd2fa4c8cb54962a6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently the lack of the `setDropdownState` function is what causes the page refresh to happen when clicking on a header notification… --- js/components/header_notification.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/components/header_notification.js b/js/components/header_notification.js index 84b71177..fe50e150 100644 --- a/js/components/header_notification.js +++ b/js/components/header_notification.js @@ -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() {