Pārlūkot izejas kodu

Fix FormSwitch component attributes binding

Bubka 5 gadi atpakaļ
vecāks
revīzija
e6a4e5c69b
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      resources/js/components/FormSwitch.vue

+ 3 - 3
resources/js/components/FormSwitch.vue

@@ -1,8 +1,8 @@
 <template>
     <div class="field">
-        <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]">
-        <label for="fieldName" class="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]">
+        <label :for="fieldName" class="label"></label>
         <p class="help" v-html="help" v-if="help"></p>
     </div>
 </template>