spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Bug]: sp-dialog: Duplicate ids on conditional rendering

Open joekukish opened this issue 3 years ago • 1 comments
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?

  1. Go to '...'
  2. Click on '....'
  3. Scroll to '....'
  4. Check console
  5. See error

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

joekukish avatar Aug 05 '22 19:08 joekukish

As a workaround, adding manually ids, avoids this issue.

joekukish avatar Aug 05 '22 19:08 joekukish