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

After resize tabs can be completely closed?! #65

Closed godsdog closed 9 years ago

godsdog commented 9 years ago

Hello, I use the plugin with: responsiveTabs({collapsible: "tabs"});

So I only want tabs and no accordion. After resizing the browser it is always possible to completely close all tabs by clicking on the active tabs navigation item. No content anymore for the user, only navigation is visible.

Is there any chance to disable that?

jellekralt commented 9 years ago

Hi there,

If I understand correctly you would like to programmatically close all the tabs, right? You could loop the number of tabs and close them with the deactivate method: https://github.com/jellekralt/Responsive-Tabs#deactivate-1

godsdog commented 9 years ago

No that's not the point. The issue is that after resizing the browser, it is possible to close the tabs so that no content is visible. This is confusing for the visitor. I want to disable that, so that there is always content visible. I think its a bug, because this issue only appears after resizing.

jellekralt commented 9 years ago

Ok, so what your are saying is that you don't want the tabs to be closable? The tabs close because you configured it with {collapsible: "tabs"}. This option enables the closing of a tab. However, this should work even before resizing. In which browser does this only happen after resizing?

godsdog commented 9 years ago

Sorry! My fault. I have to use responsiveTabs({collapsible: false}); Now it's working like i am expecting it. Thangs a lot!

jellekralt commented 9 years ago

No worries, good to hear it works now!