Top menu active stopped working on scrolling with modular


#1

Hello,

after some changes in menu and make site modular, menu stopped highlighting active item…

{% for module in page.collection() %}
{% set current_module = (module.active or module.activeChild) ? ‘active’ : ‘’ %}

  • {{ module.menu }}

  • {% endfor %}

    this code showing the menu well, but all the modules are inactive on scrolling or click… how to fix it?