Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #250 from koute/master
Browse files Browse the repository at this point in the history
Fix opening links on Firefox
  • Loading branch information
vkbansal committed Feb 20, 2019
2 parents 8b2beb4 + 3952f1b commit 271e233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export default class MenuItem extends Component {
};

handleClick = (event) => {
event.preventDefault();
if (event.button !== 0 && event.button !== 1) {
event.preventDefault();
}

if (this.props.disabled || this.props.divider) return;

Expand Down

0 comments on commit 271e233

Please sign in to comment.