jellekralt / Responsive-Tabs

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
http://jellekralt.github.io/Responsive-Tabs/
MIT License
531 stars 228 forks source link

Stop tabs from being deactivated #112

Closed tanc closed 7 years ago

tanc commented 8 years ago

I'd like to be able to stop an active tab from being deactivated. Is there a setting for this?

You can see the behaviour on http://www.landcoalition.org/en/resources if you expand the filters and then click on a tab twice. It will toggle between active and inactive states which is odd as the collapsing of the panel has been disabled for tabs.

jellekralt commented 7 years ago

The tabs shouldt be deactivated, and I can't reproduce this in my demo. I can see the thing happening on your page, could you share your configuration?

tanc commented 7 years ago

Hi, thanks for getting back to me. My config is:

wrapper.responsiveTabs({
  startCollapsed: 'accordion',
  collapsible: 'accordion',
  animation: false,
  animationQueue: true,
  duration: 200,
  active: 0
});
jellekralt commented 7 years ago

Weird, I've tried your exact config, and for some reason I still cant reproduce this.. It feels like there is something on your website that is interfering with this. Unfortunately I don't have any time to dive more deeply into this..

tanc commented 7 years ago

No problem, thanks for looking though!

jellekralt commented 7 years ago

You're welcome! I'm going to close the issue for now, as I can't properly reproduce this with a clean project. If you run into the issue again with a different setup or have a clean example for me, feel free to reopen :)