How could I re-write this to prevent the click()
event from bubbling up the dom and triggering other functions?
wallcarousel.on('select.flickity', function() {
$('.filter-category.is-selected a').click();
});
I tried adding e.stopPropagation();
like so:
wallcarousel.on('select.flickity', function() {
$('.filter-category.is-selected a').click();
e.stopPropagation(); //this did not work
});