Skip to content

Commit 091f312

Browse files
author
Voles
committed
fix(uiSref): Add left-button detection support for IE8
1 parent 799cc10 commit 091f312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stateDirectives.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function $StateRefDirective($state) {
4646
element.bind("click", function(e) {
4747
var button = e.which || e.button;
4848

49-
if ((button == 1) && !e.ctrlKey && !e.metaKey && !e.shiftKey) {
49+
if ((button === 0 || button == 1) && !e.ctrlKey && !e.metaKey && !e.shiftKey) {
5050
scope.$evalAsync(function() {
5151
$state.go(ref.state, params, { relative: base });
5252
});

0 commit comments

Comments
 (0)