Skip to content

Commit

Permalink
[fixed] Falsy href handling on MenuItem
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Oct 17, 2015
1 parent d4313c0 commit e333c3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class MenuItem extends React.Component {
);
}

const {className, style, href, onClick, ...props} = this.props;
const {className, style, onClick, ...props} = this.props;

const classes = {
disabled: this.props.disabled,
Expand All @@ -53,7 +53,6 @@ export default class MenuItem extends React.Component {
{...props}
role="menuitem"
tabIndex="-1"
href={href || ''}
onClick={createChainedFunction(onClick, this.handleClick)}
/>
</li>
Expand Down

0 comments on commit e333c3d

Please sign in to comment.