I need help with my accordion setup. Right now, I can expand/collapse an accordion tab by clicking anywhere on the tab. However, I would like to only be able to expand/collapse the tab when clicking on the "Click me" button and not on the accordion tab itself. Can someone provide guidance on how to achieve this? Thank you in advance!
Below is the code I am currently using:
<p-accordionTab header="Accordion Tab 1" [selected]="true">
<p-header>
Accordion Tab 1
<span>
<button (click)="myFunction($event)">Click me</button>
</span>
</p-header>
<ul>
<li>Colors</li>
</ul>
</p-accordionTab>