Skip to content

Commit f4002a9

Browse files
committed
Merge pull request #617 from Voles/master
fix(uiSref): Add left-button detection support for IE8
2 parents 799cc10 + 091f312 commit f4002a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stateDirectives.js

+1-1
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)