From 67bb84cf0c6d5a8bfe4caa151ca62fd4357ea9f3 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 --- framework/core/js/forum/src/components/user-notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/js/forum/src/components/user-notifications.js b/framework/core/js/forum/src/components/user-notifications.js index d406ea570..fd75d2dcc 100644 --- a/framework/core/js/forum/src/components/user-notifications.js +++ b/framework/core/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')),