Skip to content

Commit

Permalink
[#370] Fixed sub-navigation active tabindex. (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
febdao authored Nov 11, 2024
1 parent 9eb4dbc commit 2ece878
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/00-base/collapsible/collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ function CivicThemeCollapsible(el) {
this.panel.addEventListener('click', (e) => e.stopPropagation());
this.panel.addEventListener('focusout', this.focusoutEvent.bind(this));

// Init focusable elements.
this.initFocusableElements(this.panel);

// Collapse if was set as initially collapsed.
if (this.collapsed) {
this.collapse();
// Init focusable elements for data-collapsible-collapsed only.
this.initFocusableElements(this.panel);
}

this.el.addEventListener('ct.collapsible.collapse', (evt) => {
Expand Down

1 comment on commit 2ece878

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.