Skip to content

Commit

Permalink
fix(input-boolean): fix localValue, set schema required
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 authored Apr 13, 2020
1 parent 6ef2bb8 commit e29be89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/_inputs/js/InputBoolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ export default {
name: 'InputText',
props: {
schema: {
type: Object
type: Object,
required: true
},
name: {
type: String,
Expand All @@ -15,7 +16,7 @@ export default {
computed: {
localValue: {
get () {
return typeof this.value === 'boolean' ? this.value : Boolean(this.schema.default)
return this.value
},
set (val) {
this.$emit('input', val)
Expand Down

0 comments on commit e29be89

Please # to comment.