Skip to content

Commit

Permalink
chore(components): disable focus when accordion item collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
myrta2302 committed Dec 16, 2024
1 parent d7e1172 commit ac266d0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class PostAccordionItem {
id={`${this.id}--collapse`}
collapsed={this.collapsed}
ref={el => (this.collapsible = el)}
tabIndex={this.collapsed ? -1 : undefined}
>
<div class="accordion-body" part="body">
<slot />
Expand Down

0 comments on commit ac266d0

Please sign in to comment.