SPA Bootstrap 4 website nav item active class not removed

Building a site with Wappler Routing and have 1 dropdown in the top navbar. When selecting a item in the dropdown(submenu) the main/top item as well as the sub item gets an active class. When selecting another page only the submenu item active class is removed. The top item stays active.

Can it be fixed on Wappler code or do I need to write js to remove class?

01

Probably JS.
But I hope @patrick can give a solution.

1 Like

Thanks, will do it with js then.