2 of the 4 tab.js
examples aren’t working for me in CodePen and a local html file. In the “nav” example the items in the dropdown stay active and can’t be accessed again after clicking way. Same goes for all the items in the vertical tabs: https://codepen.io/DannyJoris/pen/MvqMEW
At first I thought maybe there’s a bug in the provided code snippets, but the bugs persist even when I copy the markup of the working example using the inspector tool. That makes me think something is wrong in the way I include the Bootstrap files.
These are the included CDN files:
CSS:
JavaScript:
- https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
- https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js
- https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.0.8/popper.min.js
- https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js
Tested on macOS 10.12.6, Chrome 60 & Firefox 55
Edit: it does work when using Bootstrap 3.3.7: https://codepen.io/DannyJoris/pen/VzEZmw, so it must be a bug in Bootstrap.
2
Answers
It looks like this is resolved in beta: https://github.com/twbs/bootstrap/issues/23708#issuecomment-325263323
If your issue is related to the vertical and pills I may suggest to add the following handlers:
Remember: the IDs must be unique (refer: myTab)