Skip to content

Commit ce3a91c

Browse files
fix: update of attributes of Checklist, Text and Textarea fields.
1 parent ebf3f01 commit ce3a91c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/fields/fieldChecklist.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<template lang="jade">
22
.wrapper
3-
.listbox.form-control(v-if="schema.listBox")
3+
.listbox.form-control(v-if="schema.listBox", :disabled="disabled")
44
.list-row(v-for="item in items")
55
label
6-
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
6+
input(type="checkbox", :checked="getItemIsChecked(item)", :disabled="disabled", @change="onChanged($event, item)")
77
| {{ getItemName(item) }}
88

9-
.combobox.form-control(v-if="!schema.listBox")
9+
.combobox.form-control(v-if="!schema.listBox", :disabled="disabled")
1010
.mainRow(@click="onExpandCombo", :class="{ expanded: comboExpanded }")
1111
.info {{ selectedCount }} selected
1212
.arrow
1313

1414
.dropList
1515
.list-row(v-if="comboExpanded", v-for="item in items")
1616
label
17-
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
17+
input(type="checkbox", :checked="getItemIsChecked(item)", :disabled="disabled", @change="onChanged($event, item)")
1818
| {{ getItemName(item) }}
1919
</template>
2020

src/fields/fieldText.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template lang="jade">
2-
input.form-control(type="text", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :maxlength="schema.max", :placeholder="schema.placeholder", :readonly="schema.readonly")
2+
input.form-control(type="text", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :maxlength="schema.max", :pattern="schema.pattern", :placeholder="schema.placeholder", :readonly="schema.readonly")
33
</template>
44

55
<script>

src/fields/fieldTextArea.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template lang="jade">
2-
textarea.form-control(v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :maxlength="schema.max", :minlength="schema.min", :placeholder="schema.placeholder", :readonly="schema.readonly", :rows="schema.rows || 2")
2+
textarea.form-control(v-model="value", :disabled="disabled", :maxlength="schema.max", :minlength="schema.min", :placeholder="schema.placeholder", :readonly="schema.readonly", :rows="schema.rows || 2")
33
</template>
44

55
<script>

0 commit comments

Comments
 (0)