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.
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:
This event is never fired on elements that have an
on-tapattribute because of this line: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.