Skip to content

Commit 43e78f3

Browse files
authored
Fix accordion when content is static (#725)
1 parent bedb498 commit 43e78f3

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.67.3 (2024-08-29)
2+
3+
### Bug fix
4+
5+
- **Accordion**: initialize accordion event listener properly for static accordions
6+
17
# 2.67.2 (2024-08-27)
28

39
### Improvements

projects/pastanaga-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@guillotinaweb/pastanaga-angular",
33
"description": "Provides Pastanaga UI elements as Angular components",
4-
"version": "2.67.2",
4+
"version": "2.67.3",
55
"license": "MIT",
66
"keywords": [
77
"angular",

projects/pastanaga-angular/src/lib/accordion/accordion.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export class AccordionComponent implements AfterViewInit, OnDestroy {
3434
@ContentChildren(AccordionItemComponent) items?: QueryList<AccordionItemComponent>;
3535

3636
ngAfterViewInit() {
37+
this.accordionItemsUpdated();
3738
this.items?.changes.subscribe(() => this.accordionItemsUpdated());
3839
}
3940

0 commit comments

Comments
 (0)