cferdinandi / tabby

Lightweight, accessible vanilla JS toggle tabs.
MIT License
599 stars 73 forks source link

checks if the toggle is in a list to avoid setting unnessary classes #11

Closed mcschneider closed 10 years ago

mcschneider commented 10 years ago

This is a resubmission from a separate branch. I hope this makes it easier for you. I left the options untouched this time.

cferdinandi commented 10 years ago

Just a heads up: for some reason with this change the active class is no longer added to the toggle element itself in a list—only the parent <li> element. I'll update accordingly.

cferdinandi commented 10 years ago

Updated in version 6.2, with a different approach from PR.