So I'm using stackable.js (http://johnpolacek.github.io/stacktable.js/) for responsive tables and I have run across an issue with a click function I am using on an element located inside the table. The function works fine when viewed at full width on the desktop but as soon as the table is stacked via stackable.js my function no longer registers the click. I have determined this is definitely a conflict with stackable.js but not exactly sure what is preventing the functioning to trigger.
I know that stackable adds its own classes once it has collapsed, however, I am not sure this is what the issue is?
If anyone has any insight on what the issue may be please share your thoughts. Much appreciated.
Here is the Jquery function I'm hoping to get to work on the stacked table:
/*START WISH LIST STAR TOGGLE + MODAL*/
$(document).ready(function() {
"use strict";
$('span.star').on('click', function() {
$(this).toggleClass('active');
if($(this).hasClass('active')){
$('#wishListModal').foundation('open');
/*This is needed to redraw the slick coursel in the modal as dimentions are not properly calculated (due to it initialy hidden)*/
$('.slick-slider').resize();
}
});
});
/*END WISH LIST STAR TOGGLE + MODAL*/