From e333c3d339c8f0aeecd4aa6cb7e346993e3bec89 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Sat, 17 Oct 2015 16:53:54 -0400 Subject: [PATCH] [fixed] Falsy href handling on MenuItem --- src/MenuItem.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MenuItem.js b/src/MenuItem.js index a6ff69de23..448fb6de6d 100644 --- a/src/MenuItem.js +++ b/src/MenuItem.js @@ -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, @@ -53,7 +53,6 @@ export default class MenuItem extends React.Component { {...props} role="menuitem" tabIndex="-1" - href={href || ''} onClick={createChainedFunction(onClick, this.handleClick)} />