File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed
packages/coreui-vue/src/components/form Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ const CFormCheck = defineComponent({
189
189
const formControl = ( ) => {
190
190
return h ( 'input' , {
191
191
...attrs ,
192
- ...( ( props . modelValue || props . value ) && { checked : isChecked . value } ) ,
192
+ ...( props . modelValue && { checked : isChecked . value } ) ,
193
193
class : inputClassName ,
194
194
id : props . id ,
195
195
indeterminate : props . indeterminate ,
@@ -236,26 +236,26 @@ const CFormCheck = defineComponent({
236
236
props . button
237
237
? [ formControl ( ) , ( slots . label || props . label ) && formLabel ( ) , formValidation ( ) ]
238
238
: props . label
239
- ? props . hitArea
240
- ? [
241
- h (
242
- CFormLabel ,
239
+ ? props . hitArea
240
+ ? [
241
+ h (
242
+ CFormLabel ,
243
+ {
244
+ customClassName : className ,
245
+ ...( props . id && { for : props . id } ) ,
246
+ } ,
247
+ [ formControl ( ) , props . label ] ,
248
+ ) ,
249
+ formValidation ( ) ,
250
+ ]
251
+ : h (
252
+ 'div' ,
243
253
{
244
- customClassName : className ,
245
- ...( props . id && { for : props . id } ) ,
254
+ class : className ,
246
255
} ,
247
- [ formControl ( ) , props . label ] ,
248
- ) ,
249
- formValidation ( ) ,
250
- ]
251
- : h (
252
- 'div' ,
253
- {
254
- class : className ,
255
- } ,
256
- [ formControl ( ) , props . label && formLabel ( ) , formValidation ( ) ] ,
257
- )
258
- : formControl ( )
256
+ [ formControl ( ) , props . label && formLabel ( ) , formValidation ( ) ] ,
257
+ )
258
+ : formControl ( )
259
259
} ,
260
260
} )
261
261
You can’t perform that action at this time.
0 commit comments