Skip to content

Commit

Permalink
feat: allow collapsible to be individually expanded
Browse files Browse the repository at this point in the history
A collapsible can now be individually expanded, independent of its containing accordion.
  • Loading branch information
MeridianGH committed Jan 22, 2024
1 parent 1073fd2 commit 1f563f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/accordion/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Accordion {
/**
* Handle `expanded`
*/
if (!this.dependent) {
if (this.expanded && !this.dependent) {
this.getCollapsibleChildren().forEach((child) => {
child.expanded = this.expanded;
});
Expand Down

0 comments on commit 1f563f3

Please sign in to comment.