mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
Fix filter menu value type
This commit is contained in:
parent
22591af2f6
commit
9a7a620ec7
@ -48,7 +48,7 @@ let FilterMenu = React.createClass({
|
||||
renderMenuItem(item) {
|
||||
return (
|
||||
<MenuItem key={item.value}>
|
||||
<Checkbox checked={this.state.selectedKeys.indexOf(item.value) >= 0} />
|
||||
<Checkbox checked={this.state.selectedKeys.indexOf(item.value.toString()) >= 0} />
|
||||
{item.text}
|
||||
</MenuItem>
|
||||
);
|
||||
@ -63,7 +63,7 @@ let FilterMenu = React.createClass({
|
||||
});
|
||||
const subMenuCls = containSelected ? 'ant-dropdown-submenu-contain-selected' : '';
|
||||
return (
|
||||
<SubMenu title={item.text} className={subMenuCls} key={item.value}>
|
||||
<SubMenu title={item.text} className={subMenuCls} key={item.value.toString()}>
|
||||
{item.children.map(child => this.renderMenuItem(child))}
|
||||
</SubMenu>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user