# Attributes Accordion Error when it be used in Side menu bar(Collapse/Expand)

**URL:** <https://forum.finsweet.com/t/attributes-accordion-error-when-it-be-used-in-side-menu-bar-collapse-expand/2451>\
**Category:** General\
**Created:** [January 31, 2024, 10:04am UTC](https://forum.finsweet.com/t/attributes-accordion-error-when-it-be-used-in-side-menu-bar-collapse-expand/2451 "2024-01-31T10:04:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![4u1](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/4u1/32/3102_2.png) [@4u1](https://forum.finsweet.com/u/4u1)\
**Post date:** [January 31, 2024, 10:04am UTC](https://forum.finsweet.com/t/attributes-accordion-error-when-it-be-used-in-side-menu-bar-collapse-expand/2451/1 "2024-01-31T10:04:09Z")

</div>

My dashboard site features a sidebar menu, and its attributes are set according to the Attributes Accordion of finsweet and JavaScript version. Please attempt to click all the menu links and navigate through each of the menus in below shared site. You may notice an issue where all menus expand and remain open; they should actually collapse when navigating to a new page. Please assist me by testing the site and identifying any such issues. I would greatly appreciate your help in advance\*\*

\*share link : [Webflow - Copy of PSMS](https://preview.webflow.com/preview/psms-2aeb7daa4d826dd2a0d126f58f1ca4eb?utm_medium=preview_link&utm_source=designer&utm_content=psms-2aeb7daa4d826dd2a0d126f58f1ca4eb&preview=ac1e7b02f16085c1704e665df0a5b3c3&workflow=preview)

publised link : [https://psms-2aeb7daa4d826dd2a0d126f58f1ca4eb.webflow.io/](https://psms-2aeb7daa4d826dd2a0d126f58f1ca4eb.webflow.io/)

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [January 31, 2024, 11:53am UTC](https://forum.finsweet.com/t/attributes-accordion-error-when-it-be-used-in-side-menu-bar-collapse-expand/2451/2 "2024-01-31T11:53:03Z")

</div>

Hey @4u1! it seems the Attribute script is not loading correctly on all your pages. Would you happen to have any script that could interfere with the solution? Once I manually initialize the Attribute it seems to be working as expected, all accordions collapse.

You can manually initialize the script with something like this while we find the issue.

```js
<script>
  window.onload = () => {
    window.fsAttributes.accordion.init();
  };
</script>

```
