From c2192983c4e18508b4fb06644417a706f20c0905 Mon Sep 17 00:00:00 2001 From: Alvaro Saburido Date: Mon, 28 Sep 2020 21:09:05 +0200 Subject: [PATCH] fix(checkbox): added checked prop --- dev/typescript/main.ts | 4 ++-- src/components/checkbox-input/CheckboxInput.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/typescript/main.ts b/dev/typescript/main.ts index b442634..bb2b829 100644 --- a/dev/typescript/main.ts +++ b/dev/typescript/main.ts @@ -3,8 +3,8 @@ import { createApp } from 'vue'; import App from './App.vue'; import './styles/main.scss'; -// import { createDynamicForms } from '../../src'; -import { createDynamicForms } from '../../dist/as-dynamic-forms.esm'; +import { createDynamicForms } from '../../src'; +//import { createDynamicForms } from '../../dist/as-dynamic-forms.esm'; const VueDynamicForms = createDynamicForms({ autoValidate: true, diff --git a/src/components/checkbox-input/CheckboxInput.vue b/src/components/checkbox-input/CheckboxInput.vue index baa4861..7db46d4 100644 --- a/src/components/checkbox-input/CheckboxInput.vue +++ b/src/components/checkbox-input/CheckboxInput.vue @@ -21,6 +21,7 @@ export default defineComponent({ disabled: props?.control?.disabled, class: ['checkbox-control'], value: props?.control?.value, + checked: props?.control?.value, onFocus, onBlur, onChange: onCheck,