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 {
1313 * @type {'checkbox' | 'radio' }
1414 * @default 'checkbox'
1515 */
16- @Input ( ) type : 'checkbox' | 'radio' = 'checkbox' ;
16+ @HostBinding ( 'attr.type' )
17+ @Input ( ) type : ( 'checkbox' | 'radio' ) = 'checkbox' ;
1718
1819 /**
1920 * Set component indeterminate state.
@@ -27,11 +28,9 @@ export class FormCheckInputDirective {
2728 this . renderer . setProperty ( this . hostElement . nativeElement , 'indeterminate' , newValue ) ;
2829 }
2930 } ;
30-
3131 get indeterminate ( ) {
3232 return this . _indeterminate ;
3333 }
34-
3534 private _indeterminate = false ;
3635
3736 /**
@@ -42,7 +41,6 @@ export class FormCheckInputDirective {
4241
4342 @HostBinding ( 'class' )
4443 get hostClasses ( ) : any {
45-
4644 return {
4745 'form-check-input' : true ,
4846 'is-valid' : this . valid === true ,
You can’t perform that action at this time.
0 commit comments