The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Each time I reload my page my bootstrap menu stays open.
I only would like it to open when I click on the links.
Why is it staying open when reload page and how could I solve this so it can stay closed until I click on the link.
<ul class="list-group" class="collapse" ... >
<ul class="list-group collapse" ... >
also change the aria-expanded attribute to false. Bootstrap’s JS should update it when expanding/collapsing but you should set it properly for the initial state
It works for the main system menu but now the user menu inside stays open. I only want to open and close when I click on it.
Was the same problem as other menu