Skip to content

Commit

Permalink
Support 0 value as being numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Mar 3, 2016
1 parent 3d72cef commit c2c0ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/menu/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Menu extends React.Component {
if (item.type === MenuItem) {
return React.cloneElement(item, {
ripple: item.props.ripple || this.props.ripple,
selected: item.props.value && this.props.selectable && item.props.value === this.props.selected,
selected: typeof item.props.value !== 'undefined' && this.props.selectable && item.props.value === this.props.selected,
onClick: this.handleSelect.bind(this, item)
});
} else {
Expand Down

0 comments on commit c2c0ac7

Please sign in to comment.