Inside the q-btn
, there is a q-checkbox
. Additionally, I included a div
to style the text.
<q-btn
flat
color="blue"
class="full-width no-padding"
@click="tog(item)"
>
<q-checkbox
class="q-mr-sm"
v-model="item.toggle"
/>
<div class="text-caption text-grey" style="">{{ item.label }}</div>
<q-space />
</q-btn>
After clicking on the text, the tog(item)
function executes perfectly. However, when clicking directly on the checkbox, nothing happens. Is there a way to trigger the tog()
function when clicking on the checkbox itself?