Skip to content
This repository was archived by the owner on May 23, 2018. It is now read-only.

Commit 5a2ab71

Browse files
committed
feat: improve decision to handle click or not
1 parent 6092808 commit 5a2ab71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/link-factory.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ function linkFactory(router) {
4040
},
4141

4242
clickHandler(evt) {
43-
if (!evt.nativeEvent.which === 2) {
43+
let comboKey = event.metaKey || event.altKey || event.ctrlKey || event.shiftKey;
44+
45+
if (evt.button === 0 && !comboKey) {
4446
evt.preventDefault()
4547
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions)
4648
}

0 commit comments

Comments
 (0)