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

Commit

Permalink
fix: allow middle click
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Jul 30, 2015
1 parent 8a388fa commit 511cede
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/link-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ function linkFactory(router) {
},

clickHandler(evt) {
evt.preventDefault()
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions)
if (evt.which === 1) {
evt.preventDefault()
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions)
}
},

// Is it overkill?
Expand Down

0 comments on commit 511cede

Please sign in to comment.