Skip to content

Relax strict HTML structure requirement for accordion groups - #25

Merged
polarbirke merged 2 commits into
masterfrom
fix-too-strict-reliance-on-html-structure
Feb 13, 2026
Merged

polarbirke merged 2 commits into
masterfrom
fix-too-strict-reliance-on-html-structure

Conversation

@polarbirke

@polarbirke polarbirke commented Feb 13, 2026 •

Copy link
Copy Markdown
Member

Replace strict parentElement check with .closest(accordionGroup) to support arbitrary wrapper elements between group and accordions while still excluding nested accordions. Add test with additional wrappers.

This fixes an undocumented breaking change that was introduced in v5.0.0 (#18).

Replace strict parentElement check with `.closest(accordionGroup)` to support arbitrary wrapper elements between group and accordions while still excluding nested accordions. Add test with additional wrappers.

This fixes an undocumented breaking change that was introduced in v5.0.0.
@polarbirke
polarbirke merged commit ce7df72 into master Feb 13, 2026
2 checks passed
@polarbirke
polarbirke deleted the fix-too-strict-reliance-on-html-structure branch February 13, 2026 14:56
polarbirke added a commit that referenced this pull request Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant