Ben Nadel
unread,Dec 20, 2012, 9:57:00 AM12/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
I have a container. The container has a number of Anchor tags within it.
Based on some user interactions, that involve mouseDown / mouseUp events, I need to cancel the default behavior (ie. stop navigation) of the Anchor tags.
I'm using click-handler delegation (in a Directive) on the container:
container.on( "click", "a.marker", function( event ) {
. . . . event.preventDefault();.
} );
What I am finding is that this doesn't actually work. BUT, if I add event.stopPropagation() as well, it works.
Is AngularJS doing something special with click events on Anchor tags that requires this extra step?
Or, do I have a bug somewhere in my code that is forcing the navigation?
Thanks,
Ben Nadel