Skip to content

Commit 2b3c7e5

Browse files
authored
feat(fields): add required attribute to checkbox component
1 parent de6b323 commit 2b3c7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fields/core/fieldCheckbox.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template lang="pug">
2-
input(:id="getFieldID(schema)", type="checkbox", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :name="schema.inputName", :class="schema.fieldClasses", v-attributes="'input'")
2+
input(:id="getFieldID(schema)", type="checkbox", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :name="schema.inputName", :class="schema.fieldClasses", :required="schema.required", v-attributes="'input'")
33
</template>
44

55
<script>

0 commit comments

Comments
 (0)