File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
projects/coreui-angular/src/lib/form/form-check Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ export class FormCheckInputDirective {
13
13
* @type {'checkbox' | 'radio' }
14
14
* @default 'checkbox'
15
15
*/
16
- @Input ( ) type : 'checkbox' | 'radio' = 'checkbox' ;
16
+ @HostBinding ( 'attr.type' )
17
+ @Input ( ) type : ( 'checkbox' | 'radio' ) = 'checkbox' ;
17
18
18
19
/**
19
20
* Set component indeterminate state.
@@ -27,11 +28,9 @@ export class FormCheckInputDirective {
27
28
this . renderer . setProperty ( this . hostElement . nativeElement , 'indeterminate' , newValue ) ;
28
29
}
29
30
} ;
30
-
31
31
get indeterminate ( ) {
32
32
return this . _indeterminate ;
33
33
}
34
-
35
34
private _indeterminate = false ;
36
35
37
36
/**
@@ -42,7 +41,6 @@ export class FormCheckInputDirective {
42
41
43
42
@HostBinding ( 'class' )
44
43
get hostClasses ( ) : any {
45
-
46
44
return {
47
45
'form-check-input' : true ,
48
46
'is-valid' : this . valid === true ,
You can’t perform that action at this time.
0 commit comments