Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit dd831ca

Browse files
authored
Merge pull request #136 from alvarosaburido/bugfix/checkbox-default-true-is-not-being-s
fix(checkbox): added checked prop
2 parents 16ae0bd + c219298 commit dd831ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dev/typescript/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { createApp } from 'vue';
33
import App from './App.vue';
44
import './styles/main.scss';
55

6-
// import { createDynamicForms } from '../../src';
7-
import { createDynamicForms } from '../../dist/as-dynamic-forms.esm';
6+
import { createDynamicForms } from '../../src';
7+
//import { createDynamicForms } from '../../dist/as-dynamic-forms.esm';
88

99
const VueDynamicForms = createDynamicForms({
1010
autoValidate: true,

src/components/checkbox-input/CheckboxInput.vue

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default defineComponent({
2121
disabled: props?.control?.disabled,
2222
class: ['checkbox-control'],
2323
value: props?.control?.value,
24+
checked: props?.control?.value,
2425
onFocus,
2526
onBlur,
2627
onChange: onCheck,

0 commit comments

Comments
 (0)