From e29be89b91a2a50cc8e368685f428ffe29ef812b Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Mon, 13 Apr 2020 16:08:36 -0300 Subject: [PATCH] fix(input-boolean): fix localValue, set schema required --- src/components/_inputs/js/InputBoolean.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/_inputs/js/InputBoolean.js b/src/components/_inputs/js/InputBoolean.js index 66be248..b5e42ec 100644 --- a/src/components/_inputs/js/InputBoolean.js +++ b/src/components/_inputs/js/InputBoolean.js @@ -2,7 +2,8 @@ export default { name: 'InputText', props: { schema: { - type: Object + type: Object, + required: true }, name: { type: String, @@ -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)