Select first toggle tab by default.

The first one is selected by default, so add the class to make it look
visually selected.
This commit is contained in:
Brock Whittaker
2017-02-21 11:30:34 -08:00
parent 7a75ed9c4a
commit e4008bcf1c

View File

@@ -28,7 +28,8 @@ exports.toggle = (function () {
// add proper classes for styling in CSS.
if (i === 0) {
tab.addClass("first");
// this should be default selected unless otherwise specified.
tab.addClass("first selected");
} else if (i === opts.values.length - 1) {
tab.addClass("last");
} else {