Skip to content

Commit 3266703

Browse files
WHeirstrateWouter Heirstrate
andauthored
fix(ngx-layout): update change detection as soon as an item is toggled (#258)
Co-authored-by: Wouter Heirstrate <[email protected]>
1 parent 7cf3820 commit 3266703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/layout/src/lib/components/accordion/item/accordion-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class NgxAccordionItemComponent implements OnInit, AfterViewInit, OnDestr
173173

174174
// Iben: Listen to the open state of details and update the internal one
175175
this.renderer.listen(this.detailsElement.nativeElement, 'toggle', (event: ToggleEvent) => {
176-
this.isOpen = event.newState === 'open';
176+
this.updateAccordionItemState(event.newState === 'open');
177177
});
178178
}
179179

0 commit comments

Comments
 (0)