Skip to content

Commit

Permalink
Adding active attr on init
Browse files Browse the repository at this point in the history
  • Loading branch information
janmarkuslanger committed Sep 3, 2019
1 parent 7185477 commit 3ccd889
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/tabby.iife.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@
animation: 'fade'
});

myTabs[0].next();


</script>

</body>
Expand Down
1 change: 1 addition & 0 deletions src/tabby.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class Tabby {
if (index === 0) {
partner.style.display = 'block';
partner.style.opacity = '1';
bar.setAttribute(ATTRIBUTE_ACTIVE, '');
} else {
partner.style.display = 'none';

Expand Down

0 comments on commit 3ccd889

Please sign in to comment.