mirror of
https://github.com/ascribe/onion.git
synced 2025-01-08 20:55:59 +01:00
Merged in AD-456-bug-fix-sorting-menuitem (pull request #84)
Ad 456 bug fix sorting menuitem
This commit is contained in:
commit
8e62206a21
@ -3,7 +3,6 @@
|
||||
import React from 'react';
|
||||
|
||||
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
|
||||
import MenuItem from 'react-bootstrap/lib/MenuItem';
|
||||
|
||||
import { getLangText } from '../../utils/lang_utils.js';
|
||||
|
||||
@ -62,7 +61,8 @@ let PieceListToolbarOrderWidget = React.createClass({
|
||||
</li>
|
||||
{this.props.orderParams.map((param) => {
|
||||
return (
|
||||
<MenuItem
|
||||
<div>
|
||||
<li
|
||||
key={param}
|
||||
onClick={this.orderBy(param)}
|
||||
className="filter-widget-item">
|
||||
@ -75,7 +75,8 @@ let PieceListToolbarOrderWidget = React.createClass({
|
||||
type="checkbox"
|
||||
checked={param.indexOf(this.props.orderBy) > -1} />
|
||||
</div>
|
||||
</MenuItem>
|
||||
</li>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</DropdownButton>
|
||||
|
Loading…
Reference in New Issue
Block a user