From b4a2499704f357d654cff6c6f8a2746c80752ccd Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Sun, 4 Sep 2016 17:10:42 -0500 Subject: [PATCH] fix(ng1.uiSref): Allow nested UISrefs by stopping event propagation on-click Closes #2962 --- src/ng1/directives/stateDirectives.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ng1/directives/stateDirectives.ts b/src/ng1/directives/stateDirectives.ts index e071f6bd9..3c51e1bfb 100644 --- a/src/ng1/directives/stateDirectives.ts +++ b/src/ng1/directives/stateDirectives.ts @@ -66,6 +66,7 @@ function clickHook(el: IAugmentedJQuery, $state: StateService, $timeout: ITimeou $state.go(target.state, target.params, target.options); }); e.preventDefault(); + e.stopPropagation(); // if the state has no URL, ignore one preventDefault from the directive. var ignorePreventDefaultCount = type.isAnchor && !target.href ? 1: 0;