I am using bootstrap v5 and I am having issues with the following collapse. the issue is that when clicked on the list appears and disappears straight away instead of staying open. I must be missing something very simple as I am half way there in that is opens momentarily! :)
<div id="filters_col">
<a data-toggle="collapse" href="#collapseFilters" aria-expanded="false" aria-controls="collapseFilters" id="filters_col_bt">Filters </a>
<div class="collapse" id="collapseFilters">
<div class="filter_type">
<h6>Duration</h6>
<input type="text" id="range" name="range" value="">
</div>
<div class="filter_type">
<h6>Review score</h6>
<ul>
<li>
<label>Superb: 9+ (77)</label>
<input type="checkbox" class="js-switch" checked>
</li>
<li>
<label>Very good: 8+ (552)</label>
<input type="checkbox" class="js-switch">
</li>
</ul>
</div>
<div class="filter_type">
<h6>Type</h6>
<ul>
<li>
<label>Cocktails Bar (77)</label>
<input type="checkbox" class="js-switch" checked>
</li>
<li>
<label>Pub (552)</label>
<input type="checkbox" class="js-switch">
</li>
</ul>
</div>
</div>
<!--End collapse -->
</div>