Skip to content

[Bug]: Accordion behaviour replicates on all accordions #228

Description

@jenisayshi

Overview

Changes to accordions replicate on all accordions across all pages. For example, a 'hide all' or 'show all' will hide or show all. Hiding or showing specific accordion will replicate on all different accordions for the same number section (for example showing the first section on an accordion will show the first section on all accordions).

This is because thaccordion.js is currently written to pick up all instances of an accordion number or class in a document.

Steps to Reproduce

Edit example app to have multiple accordions to see how each accordion changes when the other is set to hide or show.

Expected Behavior

All accordions should operate independently of each other, so when one accordion is shown or hidden it does not impact the other accordions.

Additional Information

Fix for #191 will need to be fixed in this way.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions