Closed thojo closed 2 years ago
You can workaround this by using the $any()
directive in the template
https://stackblitz.com/edit/clarity-dark-theme-v5-sv8hjs
(expandedChange)="collapsed = !$any($event).detail"
Yeah, thanks @coryrylan. I just realized that, too.
But my IDE still complains with a warning and other tooling might do the same.
However, it no longer blocks an update.
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Describe the bug
After updating Clarity from 5.5.1 to 5.6.2 I cannot longer use the
expanded
event of<cds-accordion-panel>
because theexpandedChange
property is missing from the d.ts file ofCdsAccordionPanelDirective
.The build fails:
How to reproduce
Steps to reproduce the behavior:
npm install
/ng serve
to finish.Expected behavior
No build errors when using
expandedChange
's$event
with<cds-accordion-panel>
like with versions up to 5.5.2.Steps to see working state with version 5.5.2 in StackBlitz demo:
ng serve
with ctrl+c.@angular/cds
to 5.5.2 in package.json.npm install
in terminal.npm install
/ng serve
to finish.Versions
Clarity project:
Clarity version:
Framework:
Framework version: Angular 11 and 12