Skip to content

Commit

Permalink
Closes #61
Browse files Browse the repository at this point in the history
  • Loading branch information
edcarroll committed May 29, 2017
1 parent bf7c1fa commit cd92e8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export class SuiAccordion implements AfterContentInit {
}

ngAfterContentInit() {
this.updatePanels();

// Reconnect panels after they have updated.
this.panels.changes.subscribe(() => setTimeout(() => this.updatePanels()));
}

public updatePanels() {
this.panels.forEach(p => this._service.addPanel(p));
}
}

0 comments on commit cd92e8c

Please sign in to comment.