Skip to content

Commit

Permalink
Fix accordion when content is static (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpellerin42 authored Aug 29, 2024
1 parent bedb498 commit 43e78f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.67.3 (2024-08-29)

### Bug fix

- **Accordion**: initialize accordion event listener properly for static accordions

# 2.67.2 (2024-08-27)

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion projects/pastanaga-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@guillotinaweb/pastanaga-angular",
"description": "Provides Pastanaga UI elements as Angular components",
"version": "2.67.2",
"version": "2.67.3",
"license": "MIT",
"keywords": [
"angular",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class AccordionComponent implements AfterViewInit, OnDestroy {
@ContentChildren(AccordionItemComponent) items?: QueryList<AccordionItemComponent>;

ngAfterViewInit() {
this.accordionItemsUpdated();
this.items?.changes.subscribe(() => this.accordionItemsUpdated());
}

Expand Down

0 comments on commit 43e78f3

Please sign in to comment.