We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa3ebf commit 438a62aCopy full SHA for 438a62a
src/stateDirectives.js
@@ -44,7 +44,9 @@ function $StateRefDirective($state) {
44
if (isForm) return;
45
46
element.bind("click", function(e) {
47
- if ((e.which == 1) && !e.ctrlKey && !e.metaKey && !e.shiftKey) {
+ var button = e.which || e.button;
48
+
49
+ if ((button == 1) && !e.ctrlKey && !e.metaKey && !e.shiftKey) {
50
$state.go(ref.state, params, { relative: base });
51
scope.$apply();
52
e.preventDefault();
0 commit comments