What's Changed
- 🐞 Media changes no longer affect unrelated collapsable items (#38)
When the media condition changes for a group of collapsable items, thehandleDefaultExpandedmethod now only processes items whose media matches the current condition. - 🐞 Filter expanded items by media query in
getExpanded(#38)
ThegetExpandedmethod now checks media query conditions, ensuring only items matching their media settings are considered expanded. Items without a matching media condition (collapsable is inactive) are ignored. This handles edge cases where items in the same group have mixed media conditions. - 🐞 Improved accordion behavior (#38)
During accordion initialization, all items except the default expanded one are closed first, and only then is the default expanded item opened. Additionally, when collapsing other items upon expanding one, the logic avoids collapsing the item that will be re-expanded immediately afterward.
Full Changelog: 4.1.2...4.1.3