From 59993c0b1b1ed693b645d1d105bdf7f5463d678e Mon Sep 17 00:00:00 2001 From: Kevin Buhmann Date: Thu, 4 Jan 2024 10:31:26 -0600 Subject: [PATCH] fix(accordion): prevent error with nested accordions This is a port of 898e1df3ea72df015119509f6ec335d2e591d29d (#1119) to 17.x. An instance of the accordion component should only care about its own panels. Including nested accordions' panels causes an error when trying to update panels that don't belong the parent instance. closes #1118 --- projects/angular/src/accordion/accordion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/angular/src/accordion/accordion.ts b/projects/angular/src/accordion/accordion.ts index 699aa0c2a0..5a1ba47062 100644 --- a/projects/angular/src/accordion/accordion.ts +++ b/projects/angular/src/accordion/accordion.ts @@ -32,7 +32,7 @@ import { AccordionService } from './providers/accordion.service'; }) export class ClrAccordion implements OnInit, OnChanges, AfterViewInit, OnDestroy { @Input('clrAccordionMultiPanel') multiPanel: boolean | string = false; - @ContentChildren(ClrAccordionPanel, { descendants: true }) panels: QueryList; + @ContentChildren(ClrAccordionPanel) panels: QueryList; subscriptions: Subscription[] = []; constructor(private accordionService: AccordionService) {}