Skip to content

Commit 1af976c

Browse files
committed
Fix 'checkbox' rule in componentProperties
1 parent 1f75728 commit 1af976c

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/vfjs-global-mixin/data.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,31 @@ const data = () => ({
4545
componentProperties: {
4646
attrs: {
4747
// Components which support the 'checked' attribute
48-
checked: ['checkbox', 'radio'],
48+
checked: [
49+
{
50+
component: 'input',
51+
attrs: {
52+
type: 'checkbox',
53+
},
54+
},
55+
'radio',
56+
],
4957
// Components which support the 'required' attribute
5058
required: ['input', 'select', 'textarea'],
5159
// Components which support the 'value' attribute
5260
value: ['input', 'option', 'textarea'],
5361
},
5462
domProps: {
5563
// Components which should have its DOM property 'checked' updated
56-
checked: ['checkbox', 'radio'],
64+
checked: [
65+
{
66+
component: 'input',
67+
attrs: {
68+
type: 'checkbox',
69+
},
70+
},
71+
'radio',
72+
],
5773
// Components which should have its DOM property 'required' updated
5874
required: ['input', 'select', 'textarea'],
5975
// Components which should have its DOM property 'value' updated

0 commit comments

Comments
 (0)