I present the following div which shows an input with its label, the problem is that it does not let me click on the checkboxes.
This code is just an example of using the boostrap 5 checkbox that I am using in VueJs.
<ul class="widget-list widget-filter-list list-unstyled pt-1" style="max-height: 11rem;"
data-simplebar data-simplebar-auto-hide="false">
<li v-for="(brand, index) in brands" :key="index"
class="widget-filter-item d-flex justify-content-between align-items-center mb-1">
<div class="form-check">
<input @click="handleBrands(brand.id)"
class="form-check-input"
type="checkbox"
value=""
:id="index"
>
<label class="form-check-label widget-filter-item-text" :for="index">
{{ brand.brand }}
</label>
</div>
</li>
</ul>
I even use the DOM to know if the checkbox is being marked but it still does not show it to me:
const brs = document.getElementById('index');
console.log(brs);