bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Tabs plugin and .tab-pane/.pill-pane

Open antoineguiral opened this issue 15 years ago • 6 comments

The tabs plugin doesn't work for me with Bootstrap 1.4.0. All tabs are shown.

I think .tab-pane and .pill-pane are not used by the plugin (or at least a display:none for non active tabs).

Any fix on the pipe?

antoineguiral avatar Nov 04 '11 16:11 antoineguiral

can you provide a .jsfiddle demonstrating this? it's working here: http://twitter.github.com/bootstrap/javascript.html#tabs

fat avatar Nov 04 '11 18:11 fat

I'm having the same issue, here is the jsfiddle for it: http://jsfiddle.net/TSHrb/

mstarkman avatar Nov 04 '11 19:11 mstarkman

I'm having the same exact issue. Unfortunately, I can't post an example because it's client work. I can say that I'm not using the .tab-pane class. Just the standard example....a .tabs ul with a .tab-content div.

cpherjennings avatar Nov 04 '11 19:11 cpherjennings

Ah yeah - the recommended way is to add the .tab-pane class now.

However i just added backwards compat support for .tab-content > div

fat avatar Nov 04 '11 20:11 fat

Actually .tab-pan and .pill-pane are quite weird. I think these things should be managed by the plugin. If you've not javascript on your browser you can't see the content on non-active tabs :s

Btw, yes the demo works here : http://twitter.github.com/bootstrap/javascript.html#tabs but the sample code doesn't ;)

antoineguiral avatar Nov 04 '11 21:11 antoineguiral

the sample code works because i pushed a fix to make it backwards compat with 1.3

fat avatar Nov 04 '11 22:11 fat