Move dropdown mouseover to correct location

Related to #496.
This commit is contained in:
Franz Liedke 2015-09-16 09:00:33 +02:00
parent ad060126ae
commit 9767bce1e3
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -32,9 +32,7 @@ export default class Dropdown extends Component {
const items = this.props.children ? listItems(this.props.children) : [];
return (
<div
title={this.props.label}
className={'ButtonGroup Dropdown dropdown ' + this.props.className + ' itemCount' + items.length}>
<div className={'ButtonGroup Dropdown dropdown ' + this.props.className + ' itemCount' + items.length}>
{this.getButton()}
{this.getMenu(items)}
</div>