Created
February 21, 2017 15:56
-
-
Save IrregularShed/f2d1fdd59f21d8b998ece01833785c0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = document.querySelector('#tabset .mdl-tabs__tab-bar a[is-active]:not(.is-active)'); | |
if (a) a.classList.add('is-active'); | |
b = document.querySelector('#tabset .mdl-tabs__panel[is-active]:not(.is-active)'); | |
if (b) b.classList.add('is-active'); |
this is in conjunction with only showing the tabs when there's a full set of details to populate with
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will probably need to handle the flipped version - removing the class from
.is-active:not([is-active])