Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1417 from taion/MenuItem-href
Browse files Browse the repository at this point in the history
[fixed] Falsy href handling on MenuItem
  • Loading branch information
jquense committed Oct 17, 2015
2 parents d4313c0 + e333c3d commit f166109
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 f166109

Please sign in to comment.