Skip to content

Commit

Permalink
fix for arrayitems
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Mar 15, 2021
1 parent 1d47f3b commit f4de67e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/FormFields/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<b-form-group :id="'formGroup_'+schemaName"
:description="item.description"
:label="item.type !== 'boolean' && (ui.options === undefined || ui.options.label || ui.options.label === undefined) ? title : null"
:label-for="schemaName">
:label-for="schemaName" class="vjf_formField">
<b-input-group class="w-100">
<b-input-group-prepend v-if="hasSlot('prepend')">
<!-- Content is prepended to the input field-->
<slot name="prepend"></slot>
</b-input-group-prepend>
<component :is="type" :isInteger="item.type === 'integer'" :json="json" :name="title" class="w-100"
<component :is="type" :isInteger="item.type === 'integer'" :json="json" :name="title" :class="!(hasSlot() || hasSlot('prepend'))?'w-100':''"
:required="required"
:ui="ui" @changedData="loopUp" ref="child" :filledData="filledData"
:autocomplete="(ui.options ||{}).autocomplete || 'on'"
:style="cssStyle"/>
:style="cssStyle"/>
<b-input-group-append :is-text="!noText" v-if="hasSlot()">
<!-- Content is appended to the input field-->
<slot></slot>
Expand All @@ -27,8 +27,8 @@
import formFieldMixin from "./formFieldMixin.js";
import Array from "./Array.vue";
import Boolean from "./Boolean.vue";
import MultibleChoice from "./MultibleChoice.vue";
import Boolean from "./Checkbox.vue";
import MultibleChoice from "./Checkboxes.vue";
import Number from "./Number.vue";
import Object from "./Object.vue";
import Select from "./Select.vue";
Expand Down

0 comments on commit f4de67e

Please sign in to comment.