Skip to content

Commit b4a2499

Browse files
fix(ng1.uiSref): Allow nested UISrefs by stopping event propagation on-click
Closes #2962
1 parent 839dc4a commit b4a2499

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ng1/directives/stateDirectives.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function clickHook(el: IAugmentedJQuery, $state: StateService, $timeout: ITimeou
6666
$state.go(target.state, target.params, target.options);
6767
});
6868
e.preventDefault();
69+
e.stopPropagation();
6970

7071
// if the state has no URL, ignore one preventDefault from the <a> directive.
7172
var ignorePreventDefaultCount = type.isAnchor && !target.href ? 1: 0;

0 commit comments

Comments
 (0)