mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user