Skip to content

Commit e333c3d

Browse files
committed
[fixed] Falsy href handling on MenuItem
1 parent d4313c0 commit e333c3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/MenuItem.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class MenuItem extends React.Component {
3737
);
3838
}
3939

40-
const {className, style, href, onClick, ...props} = this.props;
40+
const {className, style, onClick, ...props} = this.props;
4141

4242
const classes = {
4343
disabled: this.props.disabled,
@@ -53,7 +53,6 @@ export default class MenuItem extends React.Component {
5353
{...props}
5454
role="menuitem"
5555
tabIndex="-1"
56-
href={href || ''}
5756
onClick={createChainedFunction(onClick, this.handleClick)}
5857
/>
5958
</li>

0 commit comments

Comments
 (0)