Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Bootstrap collapse menu stays open Reply To: [Solved] Bootstrap collapse menu stays open

#236582
Ilan Firsov
Participant

Change the

<ul class="list-group" class="collapse" ... >

to:

<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