File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/coreui-vue/src/components/form Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ const CFormCheck = defineComponent({
128
128
129
129
const formControl = ( ) => {
130
130
return h ( 'input' , {
131
+ ...attrs ,
131
132
checked : props . modelValue ,
132
133
class : [
133
134
props . button ? 'btn-check' : 'form-check-input' ,
@@ -140,7 +141,6 @@ const CFormCheck = defineComponent({
140
141
indeterminate : props . indeterminate ,
141
142
onChange : ( event : InputEvent ) => handleChange ( event ) ,
142
143
type : props . type ,
143
- ...attrs ,
144
144
} )
145
145
}
146
146
const formLabel = ( ) => {
@@ -181,6 +181,7 @@ const CFormCheck = defineComponent({
181
181
'is-invalid' : props . invalid ,
182
182
'is-valid' : props . valid ,
183
183
} ,
184
+ attrs . class ,
184
185
] ,
185
186
} ,
186
187
[ formControl ( ) , props . label && formLabel ( ) ] ,
You can’t perform that action at this time.
0 commit comments