Fix #2646 - Do not override ctrl/cmd+click on Permalinks (#3073)

lolsob-rspec
Eugen Rochko 2017-05-15 22:36:38 +02:00 committed by GitHub
parent bd7dc50186
commit 160c50957f
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Permalink extends React.PureComponent {
}; };
handleClick = (e) => { handleClick = (e) => {
if (e.button === 0) { if (e.button === 0 && !(e.ctrlKey || e.metaKey)) {
e.preventDefault(); e.preventDefault();
this.context.router.push(this.props.to); this.context.router.push(this.props.to);
} }