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

Commit

Permalink
fix: change click handler condition to allow ENTER key
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Aug 18, 2015
1 parent c219ac8 commit 0e8dbf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/link-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function linkFactory(router) {
},

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

0 comments on commit 0e8dbf5

Please sign in to comment.