You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the id generated in the fieldset component is not unique (or too unique ?): a unique id is generated everytime we use the get id()
The id is generated in a getter, so a unique id is created everytime we call id in the template ! (
Describe the bug
I found 2 issues :
the id generated in the fieldset component is not unique (or too unique ?): a unique id is generated everytime we use the get id()
The id is generated in a getter, so a unique id is created everytime we call id in the template ! (
primeng/src/app/components/fieldset/fieldset.ts
Line 185 in b99106f
Fix: the id should be generated only once in component init.
the id header is missing if the user doesn't set toggleable=true
If the fieldset is NOT toggleable, the aria-labelledby is broken
primeng/src/app/components/fieldset/fieldset.ts
Line 51 in b99106f
primeng/src/app/components/fieldset/fieldset.ts
Line 100 in b99106f
Fix: [attr.id]="id + '_header'" should be elsewhere (legend or headerTemplate ?)
Environment
The issue was found using wave on firefox.
-> Broken aria reference.
Reproducer
No response
Angular version
18.2.8
PrimeNG version
18.0.0-beta.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.17.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: