Disable scroll not working when switching between dropdowns in navigation bar

Hey there!

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 :confused:

Any help would be appreciated :slight_smile:


Hey @team1! You can DM me the link and I will have a look at it :slight_smile: