Fix FormSwitch component attributes binding

This commit is contained in:
Bubka 2020-03-13 11:58:12 +01:00
parent 5aed829813
commit e6a4e5c69b

View File

@ -1,8 +1,8 @@
<template> <template>
<div class="field"> <div class="field">
<label for="fieldName" class="label" v-html="label"></label> <label :for="fieldName" class="label" v-html="label"></label>
<input id="fieldName" type="checkbox" name="fieldName" class="switch is-thin is-info" v-model="form[fieldName]"> <input :id="fieldName" type="checkbox" :name="fieldName" class="switch is-thin is-info" v-model="form[fieldName]">
<label for="fieldName" class="label"></label> <label :for="fieldName" class="label"></label>
<p class="help" v-html="help" v-if="help"></p> <p class="help" v-html="help" v-if="help"></p>
</div> </div>
</template> </template>