Panel: id increments within component #14508
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the
panel
component, a new unique id is used for the header, toggle button, content, etc.Each time the
id
getter is called it generates a new value. The component should simply set the value once and use that.Environment
Angular 17.0.8
Reproducer
https://stackblitz.com/edit/github-mfvt7h?file=src%2Fapp%2Fapp.component.html
Angular version
17.0.8
PrimeNG version
17.3.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.19.0
Browser(s)
No response
Steps to reproduce the behavior
<p-panel>
Expected behavior
The Panel component should have one consistent id that is used throughout.
The text was updated successfully, but these errors were encountered: