Skip to content

Commit

Permalink
Merge pull request #521 from RbkCp/patch-1
Browse files Browse the repository at this point in the history
feat(fields): add required attribute to checkbox component
  • Loading branch information
lionel-bijaoui committed Oct 17, 2018
2 parents 8c76212 + 2b3c7e5 commit 8d245e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/core/fieldCheckbox.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="pug">
input(:id="getFieldID(schema)", type="checkbox", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :name="schema.inputName", :class="schema.fieldClasses", v-attributes="'input'")
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'")
</template>

<script>
Expand Down

0 comments on commit 8d245e7

Please sign in to comment.