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

mdGesture hijacked link click events don't work with plain old anchor tags #1792

@alexbr

Description

@alexbr

Preconditions

  • Use a mobile device (or sending a mobile user-agent header)
  • jQuery is loaded

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions