PrimeNG -v20 close accordion from button doesn't close
I am upgrading from earlier version of Angular to Angular 20 and now closing accordion programmatically doesn't work for me. Anyone has any idea how to do? This is what I tried. It opens and closes well when clicking on the accordion, but when I try to close from button it doesn't close - (closeAccordion) I tried two way binding for value but when reopen it doesn't open. <!-- app.component.html --> <button (click)="closeAccordion()">Close</button> <p-accordion value="activePanel" (onOpen)="onOpen($event.index)" (onClose)="onClose()"> <p-accordion-panel [value]="0"> <p-accordion-header>Panel 1<
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.