Closed
Description
UI-router does not work with IE 8 when I have a button markup like the one below
<input type="submit" class="btn btn-primary" value="Next" data-ui-sref="Users.Create.StepX" />
When I click on the button nothing happens. It works in chrome ,IE9 and IE10 but not in IE8.
It seems the issue is with e.which in below code in angular-ui-router.js.
IE8 doesnot provide any value to e.which and it defaults to 0 and is causing issue.
element.bind("click", function(e) {
if ((e.which == 1) && !e.ctrlKey && !e.metaKey && !e.shiftKey) {
$state.go(ref.state, params, { relative: base });
scope.$apply();
e.preventDefault();
}
});
Metadata
Metadata
Assignees
Labels
No labels