mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 02:42:44 +08:00
parent
ad060126ae
commit
9767bce1e3
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user