This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
mdGesture hijacked link click events don't work with plain old anchor tags #1792
Comments
I can replicate this without jQuery: http://codepen.io/anon/pen/zxejXe |
+1 Disabling |
This was referenced Apr 10, 2015
This should be fixed. Demo with jQuery: http://codepen.io/kennethcachia/pen/azgwWg |
Fixed with 2c57a82 |
Works for me on Chrome DevTools device mode and Safari in iOS Simulator. Cheers! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Preconditions
Bug
When mdGesture hijacks a link click event and decides the event should continue propagating, it passes the event to jQueryDispatchEvent which calls jQuery's trigger method. This ultimately fails because jQuery does not fire native click events. This ultimately means that clicking on simple anchor links like
<a href="http://some.site.com">Link</a>
doesn't work at all.See my plunker example here to reproduce: http://plnkr.co/edit/RtuCcILOWvlQIWs89U6n?p=preview
The text was updated successfully, but these errors were encountered: