I’m trying to make components to create a dynamic form but I’m having trouble with checkboxes
<template v-if="type === 'switch'">
<b-form-checkbox
switch
size="lg"
:name="name"
:id="name"
:ref="name"
:value="value"
v-on:input.native="updateValue($event.target.value)"
>{{ value }}</b-form-checkbox
>
</template>
Here's how I call the code
<FormRow
type="switch"
name="productor"
rule="required"
v-model="selectedCompany.productor"
/>
The problem is that the v-model content doesn't change but it does with input fields. What’s wrong? Can someone help me?
p.s. I’m working with bootstrap-vue Thank you!
valueto be checked and unchecked? And could you showupdateValue?