Skip to content

Commit cd92e8c

Browse files
committed
Closes #61
1 parent bf7c1fa commit cd92e8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/accordion/accordion.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ export class SuiAccordion implements AfterContentInit {
5151
}
5252

5353
ngAfterContentInit() {
54+
this.updatePanels();
55+
56+
// Reconnect panels after they have updated.
57+
this.panels.changes.subscribe(() => setTimeout(() => this.updatePanels()));
58+
}
59+
60+
public updatePanels() {
5461
this.panels.forEach(p => this._service.addPanel(p));
5562
}
5663
}

0 commit comments

Comments
 (0)