From 9767bce1e369aa674da845d4e8fbc4d4d6d88b17 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 16 Sep 2015 09:00:33 +0200 Subject: [PATCH] Move dropdown mouseover to correct location Related to #496. --- js/forum/src/components/NotificationsDropdown.js | 1 + js/lib/components/Dropdown.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/forum/src/components/NotificationsDropdown.js b/js/forum/src/components/NotificationsDropdown.js index b55582915..68b92b8ff 100644 --- a/js/forum/src/components/NotificationsDropdown.js +++ b/js/forum/src/components/NotificationsDropdown.js @@ -30,6 +30,7 @@ export default class NotificationsDropdown extends Dropdown { const unread = this.getUnreadCount(); const vdom = super.getButton(); + vdom.attrs.title = this.props.label; vdom.attrs.className += (unread ? ' unread' : ''); vdom.attrs.onclick = this.onclick.bind(this); diff --git a/js/lib/components/Dropdown.js b/js/lib/components/Dropdown.js index 977d47df1..2320190a3 100644 --- a/js/lib/components/Dropdown.js +++ b/js/lib/components/Dropdown.js @@ -32,9 +32,7 @@ export default class Dropdown extends Component { const items = this.props.children ? listItems(this.props.children) : []; return ( -
+
{this.getButton()} {this.getMenu(items)}