Skip to content

Commit

Permalink
feat(accordion): allow collapsible to be individually expanded (#2263)
Browse files Browse the repository at this point in the history
* feat: allow collapsible to be individually expanded

---------

Co-authored-by: Amir Baghdoust <[email protected]>
  • Loading branch information
MeridianGH and amir-ba authored Nov 6, 2024
1 parent bd30a6f commit 9b02151
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 9b02151

Please sign in to comment.