Disable scroll on menu opens, BUT preserve scroll when dropdown opens

Hi! I’m creating a new menu for our website and I’m trying to disable the scroll when the mobile menu is open, but preserve the scroll when opening specific dropdown in the menu. Does anyone know how I can achieve this? Like how it works on this site for example:

Because right now I can’t scroll at all when adding the Finsweet attributes on the navigation component (smart-nav).

Help appreciated!


Here is my site Read-Only: Webflow - New Refined Navbar