Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2958cd3

Browse files
committed
fix(htmlAnchorDirective): remove "element !== target element" check
It's not really needed due to the way click events are dispatched and propagated Closes #10866
1 parent 9f7c5ce commit 2958cd3

File tree

1 file changed

+0
-3
lines changed
  • src/ng/directive

1 file changed

+0
-3
lines changed

src/ng/directive/a.js

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ var htmlAnchorDirective = valueFn({
2525
var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
2626
'xlink:href' : 'href';
2727
element.on('click', function(event) {
28-
// If a different element was clicked, ignore it.
29-
if (element[0] !== event.target) return;
30-
3128
// if we have no href url, then don't navigate anywhere.
3229
if (!element.attr(href)) {
3330
event.preventDefault();

0 commit comments

Comments
 (0)