We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ca3317 + a59fcae commit 5a365ecCopy full SHA for 5a365ec
src/directives/stateDirectives.ts
@@ -100,7 +100,9 @@ function clickHook(
100
if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || el.attr('target'))) {
101
// HACK: This is to allow ng-clicks to be processed before the transition is initiated:
102
const transition = $timeout(function() {
103
- $state.go(target.uiState, target.uiStateParams, target.uiStateOpts);
+ if (!el.attr('disabled')) {
104
+ $state.go(target.uiState, target.uiStateParams, target.uiStateOpts);
105
+ }
106
});
107
e.preventDefault();
108
0 commit comments