Skip to content

Commit 5a365ec

Browse files
Merge pull request #3692 from MilanMaric/master
#2957 added check for disabled state
2 parents 0ca3317 + a59fcae commit 5a365ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/directives/stateDirectives.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ function clickHook(
100100
if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || el.attr('target'))) {
101101
// HACK: This is to allow ng-clicks to be processed before the transition is initiated:
102102
const transition = $timeout(function() {
103-
$state.go(target.uiState, target.uiStateParams, target.uiStateOpts);
103+
if (!el.attr('disabled')) {
104+
$state.go(target.uiState, target.uiStateParams, target.uiStateOpts);
105+
}
104106
});
105107
e.preventDefault();
106108

0 commit comments

Comments
 (0)