When you have a multi-value field and click the "Add another item" button, the new generated SHS dropdowns use the same CSS ID as the initial one.

CommentFileSizeAuthor
#2 unique_css_ids-2664532-2.patch633 byteshctom
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hctom created an issue. See original summary.

hctom’s picture

Status: Active » Needs review
FileSize
633 bytes

And here is a patch to fix this issue. The CSS ID is now generated using the delta and the level.

  • stBorchert committed 290d3a9 on authored by hctom
    Issue #2664532 by hctom: Duplicate CSS IDs when "Add another item" is...
stBorchert’s picture

Status: Needs review » Fixed

Thanks. Committed to latest dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.