Skip to content

Tap does not bubble through to the document #23

@acarnwath

Description

@acarnwath

I am using ractive on a page to render some dynamic content; this page has a bunch of other plugins, including custom ones, jQuery, and Zurb Foundation Sites. The trouble is, many plugins, including Foundation, have a "live listener" - like this one:

$(document).on('click.zf.trigger', '[data-open]', function() {
  triggers($(this), 'open');
});

This event is never fired on elements that have an on-tap attribute because of this line:

event.preventDefault(); // prevent compatibility mouse event

Not sure what the best solution is if there are compatibility issues (would be interested in understanding what exactly those were). For my project, I'm simply commenting it out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions