spectrum-web-components
spectrum-web-components copied to clipboard
[Bug]: sp-dialog: Duplicate ids on conditional rendering
trafficstars
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
sp-dialog
Expected behavior
Currently the Dialog would add ids to the description automatically. Per accessibility requirement, all ids must be unique.
Actual behavior
When having conditional rendering (in my case starting with a dropzone and then changing to a table, ids are duplicate.
Screenshots
No response
What browsers are you seeing the problem in?
No response
How can we reproduce this issue?
- Go to '...'
- Click on '....'
- Scroll to '....'
- Check console
- See error
Sample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
As a workaround, adding manually ids, avoids this issue.