From cc73b5fc56a6b8dd3710d4b9deaaf5c2b90d2f34 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 5 May 2015 17:30:36 +0930 Subject: [PATCH] Fix notifications dropdown closing when unread count is updated --- js/forum/src/components/user-notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/forum/src/components/user-notifications.js b/js/forum/src/components/user-notifications.js index d406ea570..fd75d2dcc 100644 --- a/js/forum/src/components/user-notifications.js +++ b/js/forum/src/components/user-notifications.js @@ -19,8 +19,8 @@ export default class UserNotifications extends Component { var user = this.props.user; return DropdownButton.component({ - className: 'notifications'+(user.unreadNotificationsCount() ? ' unread' : ''), - buttonClass: 'btn btn-default btn-rounded btn-naked btn-icon', + className: 'notifications', + buttonClass: 'btn btn-default btn-rounded btn-naked btn-icon'+(user.unreadNotificationsCount() ? ' unread' : ''), menuClass: 'pull-right', buttonContent: [ m('span.notifications-icon', user.unreadNotificationsCount() || icon('bell icon-glyph')),