2323 class =" f-table-row"
2424 >
2525 <td class =" f-table-cell f-row-cell" >
26- <span class =" f-table-string" >{{ row.label }}</span >
26+ <span class =" f-table-string" >{{ row.label }}</span >
2727 </td >
2828 <td
2929 v-for =" (column, index) in question.columns"
5858 <input
5959 type =" checkbox"
6060 v-bind:id =" 'c' + index + '-' + row.id"
61- v-bind:value =" column.value"
6261 v-bind:aria-label =" row.label"
62+ v-bind:value =" column.value"
6363 class =" f-field-control f-checkbox-control"
6464 v-model =" selected[row.id]"
6565 v-on:change =" onChange"
8383
8484<script >
8585/*
86- Copyright (c) 2020 - present, DITDOT Ltd. - MIT Licence
87- https://github.com/ditdot-dev/vue-flow-form
88- https://www.ditdot.hr/en
89- */
86+ Copyright (c) 2020 - present, DITDOT Ltd. - MIT Licence
87+ https://github.com/ditdot-dev/vue-flow-form
88+ https://www.ditdot.hr/en
89+ */
9090
91- import BaseType from " ./BaseType.vue"
92- import { QuestionType } from " ../../models/QuestionModel"
91+ import BaseType from ' ./BaseType.vue'
92+ import { QuestionType } from ' ../../models/QuestionModel'
9393
9494export default {
9595 extends: BaseType,
@@ -104,9 +104,9 @@ export default {
104104 beforeMount () {
105105 // Pre-fill the form if there is a predefined answer
106106 if (this .question .multiple ) {
107- for (let row of this .question .rows ) {
108- this .selected [row .id ] = this .question .answer && this .question .answer [row .id ] ? [... this .question .answer [row .id ]] : []
109- }
107+ for (let row of this .question .rows ) {
108+ this .selected [row .id ] = this .question .answer && this .question .answer [row .id ] ? [... this .question .answer [row .id ]] : []
109+ }
110110 } else if (this .question .answer ) {
111111 this .selected = {... this .question .answer }
112112 }
@@ -119,6 +119,6 @@ export default {
119119 this .onKeyDown ()
120120 this .setAnswer (this .dataValue )
121121 }
122- }
123- }
122+ }
123+ }
124124 </script >
0 commit comments