Skip to content

Commit

Permalink
fix(ng1.uiSref): Allow nested UISrefs by stopping event propagation o…
Browse files Browse the repository at this point in the history
…n-click

Closes #2962
  • Loading branch information
christopherthielen committed Sep 9, 2016
1 parent 839dc4a commit b4a2499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ng1/directives/stateDirectives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a> directive.
var ignorePreventDefaultCount = type.isAnchor && !target.href ? 1: 0;
Expand Down

0 comments on commit b4a2499

Please sign in to comment.