I am using the disable scroll functionality using finsweet attributes. I have 2 dropdowns in a navigation bar that open some kind of mega menu. To disable scroll, I used the disable scroll toggle attribute (click on the dropdown toggle opens and closes the dropdown) as well as the enable attribute set on the body, so scroll is enabled when clicking somewhere in the body as well.
Disable scroll is working fine when opening one dropdown and then closing it (via toggle or click in the body).
But it is not working when I opened a dropdown and then clicking the other dropdown to open it. Scroll should be still disabled and only enabled when both dropdowns are closed.
Unfortunately I cant share any like as it is a client project
Any help would be appreciated