Skip to content

Collapse: Multiple Targets Accordion only works once, then fails #24810

@sweisgerber-dev

Description

@sweisgerber-dev

I created a collapse with multiple targets in an accordion-style setup (set data-parent).
The switching works well, exactly once.
The second group of targets then has the show class removed and never added again (only after page reload

Steps to reproduce

Check the codepen sample below and click the numbered collapse links from 2-3, then click on 1 again.
The second group switches perfectly when clicking 2&3, when clicking on 1 again it fails.

environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions