Closed MikeiLL closed 7 years ago
Using the following hack so that the first tab doesn't have the r-tabs-state-active class.
r-tabs-state-active
But it seems like it shouldn't be showing as active with startCollapsed: 'true'.
startCollapsed: 'true'
jQuery(document).ready(function ($) { if ($('#responsiveTabsFooter')) { $('#responsiveTabsFooter').responsiveTabs({ startCollapsed: 'true', disabled: [1,2], animation: 'slide', click: function(event, tab){ if (tab.id === 1) { window.location.href = "mailto:support@tectonic.com"; } if (tab.id === 2) { window.location.href = "tel:9722333323"; } }, load: function(event, firstTab){ $('#id-added-to-anchor').toggleClass('r-tabs-state-active'); $('#id-added-to-anchor').toggleClass('r-tabs-state-default'); }, }); } });
The startCollapsed function expects a real boolean, you've set it as a string :)
startCollapsed
I knew it! Thank you very much.
Using the following hack so that the first tab doesn't have the
r-tabs-state-active
class.But it seems like it shouldn't be showing as active with
startCollapsed: 'true'
.